I have the following line of code (where "next" is a BigDecimal):
if (next.compareTo(maximum) == 1) {
maximum = next;
}
On the equality comparison, SonarQube gives me this warning:
Only the sign of the result should be examined.sonarqube-inject
What does it actually mean and how can I fix that ?