FuzzyEqualsShouldNotBeUsedInEqualsMethod (original) (raw)
FuzzyEqualsShouldNotBeUsedInEqualsMethod
DoubleMath.fuzzyEquals should never be used in an Object.equals() method
Severity
ERROR
The problem
From documentation: DoubleMath.fuzzyEquals is not transitive, so it is not suitable for use in Object#equals implementations.
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("FuzzyEqualsShouldNotBeUsedInEqualsMethod") to the enclosing element.