trivial code change

logical operators have a well-defined precedence in Java
This commit is contained in:
Gavin King 2024-01-12 13:18:48 +01:00
parent 8af5c9dcb3
commit 7703648f1e

View File

@ -36,7 +36,8 @@ public BigDecimal fromString(CharSequence string) {
@Override
public boolean areEqual(BigDecimal one, BigDecimal another) {
return one == another || ( one != null && another != null && one.compareTo( another ) == 0 );
return one == another
|| one != null && another != null && one.compareTo( another ) == 0;
}
@Override