...
Wiki Markup |
---|
\[[API 06|AA. Java References#API 06]\] [method equals()|http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#equals(java.lang.Object)] \[[Bloch 08|AA. Java References#Bloch 08]\] Item 8: Obey the general contract when overriding equals \[[Darwin 04|AA. Java References#Darwin 04]\] 9.2 Overriding the equals method |
...
MET03-J. Return zero-length arrays instead of null valuesFor methods that return an array or collection prefer returning an empty array or collection over a null value 09. Methods (MET) MET31-J. Ensure that hashCode() is overridden when equals() is overridden