in api/src/main/java/org/apache/fineract/cn/deposit/api/v1/transaction/utils/MathUtil.java [93:97]
public static Double min(Double first, Double second, boolean notNull) {
return first == null
? (notNull ? second : null)
: second == null ? (notNull ? first : null) : Math.min(first, second);
}