Skip to content

Commit

Permalink
refactor: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
qoomon committed Nov 15, 2020
1 parent 1dba4ac commit 63c5646
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,4 @@ public String getContent() {
throw new IllegalStateException("Invalid field values within " + getClass().getSimpleName() + " instance", e);
}
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
FloorLimitIndicator that = (FloorLimitIndicator) o;
return debitCreditMark.equals(that.debitCreditMark) &&
amount.equals(that.amount);
}

@Override
public int hashCode() {
return Objects.hash(debitCreditMark, amount);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ public MT942Page(
"floorLimitIndicatorDebit and floorLimitIndicatorCredit marks need to be both blank or DEBIT and CREDIT");

if (debitMark == null) {
Preconditions.checkArgument(floorLimitIndicatorDebit.getAmount().equals(floorLimitIndicatorCredit.getAmount()),
"floorLimitIndicatorDebit and floorLimitIndicatorCredit amounts needs to be equal, if marks are blank");
Preconditions.checkArgument(floorLimitIndicatorDebit == floorLimitIndicatorCredit,
"floorLimitIndicatorDebit and floorLimitIndicatorCredit needs to be the same instance, if floorLimitIndicatorDebit mark is blank");
}
}

Expand Down

0 comments on commit 63c5646

Please sign in to comment.