@@ -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