Wiki Markup |
---|
According to the Java API \[[API 2006|AA. Bibliography#API 06]\] class {{java.lang.Object}} documentation: |
If two objects are equal according to the
equals(Object)
method, then calling thehashCode
method on each of the two objects must produce the same integer result.
...
Overriding the equals()
method without overriding the hashCode()
method can lead to unexpected results.
Rule Guideline | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
MET13-J | low | unlikely | high | P1 | L3 |
...