...
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, although heuristic techniques may be useful.
Tool | Version | Checker | Description |
---|---|---|---|
Parasoft Jtest | 9.5 | CODSTA.OIM.OVERRIDE | Implemented |
Related Guidelines
...