Skip to content

Commit

Permalink
Fix code inspector issues in Split
Browse files Browse the repository at this point in the history
  • Loading branch information
rivaldi8 committed Jun 21, 2017
1 parent 4c7c241 commit 07a1470
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/org/gnucash/android/model/Split.java
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ public Money getFormattedQuantity(){
* @return -{@code amount} if the amount would reduce the balance of
* {@code account}, otherwise +{@code amount}
*/
public static Money getFormattedAmount(Money amount, String accountUID, TransactionType splitType){
private static Money getFormattedAmount(Money amount, String accountUID, TransactionType
splitType){
boolean isDebitAccount = AccountsDbAdapter.getInstance().getAccountType(accountUID).hasDebitNormalBalance();
Money absAmount = amount.abs();

Expand Down Expand Up @@ -482,6 +483,7 @@ public static Split parseSplit(String splitCsvString) {
* @param split Other split for which to test equivalence
* @return {@code true} if both splits are equivalent, {@code false} otherwise
*/
@SuppressWarnings("SimplifiableIfStatement")
public boolean isEquivalentTo(Split split){
if (this == split) return true;
if (super.equals(split)) return true;
Expand All @@ -502,6 +504,7 @@ public boolean isEquivalentTo(Split split){
* @param o Other split to compare for equality
* @return {@code true} if this split is equal to {@code o}, {@code false} otherwise
*/
@SuppressWarnings("SimplifiableIfStatement")
@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down

0 comments on commit 07a1470

Please sign in to comment.