...
Automated detection of classes that override only one of equals()
and hashcode()
is straightforward. Sound static determination that the implementations of equals()
and hashcode()
are mutually consistent is not feasible in the general case. Heuristic , although heuristic techniques may be useful for the latter issueused.
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this guideline on the CERT website.
...