...
Some available static analysis tools can detect instances where the compareTo()
method is reading from a nonconstant field.
Tool | Version | Checker | Description | ||||
---|---|---|---|---|---|---|---|
Parasoft Jtest |
|
CERT.MET11.IKICO | Ensure that keys used in comparison operations are immutable |
Bibliography
...