Skip to content

Commit

Permalink
spelling. Adding abstract to class
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Mar 5, 2026
1 parent 8b666ea commit 3172a5e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/temppackage/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ public abstract class Transaction {
private Share share;
private int week;
private TransactionCalculator transactionCalculator;
private boolean commited;
private boolean committed;

protected Transaction(Share share, int week, TransactionCalculator transactionCalculator) {
this.share = share;
this.week = week;
this.transactionCalculator = transactionCalculator;
this.commited = commited;
this.committed = false;
}

public Share getShare() {
Expand All @@ -29,11 +29,12 @@ public TransactionCalculator getCalculator() {
}

public boolean isCommitted() {
return this.commited;
return this.committed;
}

public void commit(Player player) {
// TODO
this.commited = true;
protected void setCommitted(boolean committed) {
this.committed = committed;
}

public abstract void commit(Player player);
}

0 comments on commit 3172a5e

Please sign in to comment.