Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 the hashCode 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

...