Versions Compared

Key

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

...

Search for vulnerabilities resulting from the violation of this rule on the CERT website.

Related Guidelines

MITRE 2009CWE

CWE ID 581, "Object Model Violation: Just One of Equals and Hashcode Defined"

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a3069a79ce3df36a-a6ba12ca-440b484f-bdc9b7a6-3833e58f057aad2c0fefa428"><ac:plain-text-body><![CDATA[

[[API 2006

AA. Bibliography#API 06]]

[Class Object

http://java.sun.com/javase/6/docs/api/java/lang/Object.html]

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="233f5e8d6e84bae5-db03ed89-44c1499e-8a218493-a9f55d66de7b8cedb00738ed"><ac:plain-text-body><![CDATA[

[[Bloch 2008

AA. Bibliography#Bloch 08]]

Item 9: Always override hashCode when you override equals

]]></ac:plain-text-body></ac:structured-macro>

...