Skip to content

Commit 07a1470

Browse files
committed
Fix code inspector issues in Split
1 parent 4c7c241 commit 07a1470

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • app/src/main/java/org/gnucash/android/model

app/src/main/java/org/gnucash/android/model/Split.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,8 @@ public Money getFormattedQuantity(){
311311
* @return -{@code amount} if the amount would reduce the balance of
312312
* {@code account}, otherwise +{@code amount}
313313
*/
314-
public static Money getFormattedAmount(Money amount, String accountUID, TransactionType splitType){
314+
private static Money getFormattedAmount(Money amount, String accountUID, TransactionType
315+
splitType){
315316
boolean isDebitAccount = AccountsDbAdapter.getInstance().getAccountType(accountUID).hasDebitNormalBalance();
316317
Money absAmount = amount.abs();
317318

@@ -482,6 +483,7 @@ public static Split parseSplit(String splitCsvString) {
482483
* @param split Other split for which to test equivalence
483484
* @return {@code true} if both splits are equivalent, {@code false} otherwise
484485
*/
486+
@SuppressWarnings("SimplifiableIfStatement")
485487
public boolean isEquivalentTo(Split split){
486488
if (this == split) return true;
487489
if (super.equals(split)) return true;
@@ -502,6 +504,7 @@ public boolean isEquivalentTo(Split split){
502504
* @param o Other split to compare for equality
503505
* @return {@code true} if this split is equal to {@code o}, {@code false} otherwise
504506
*/
507+
@SuppressWarnings("SimplifiableIfStatement")
505508
@Override
506509
public boolean equals(Object o) {
507510
if (this == o) return true;

0 commit comments

Comments
 (0)