Duplicate :
|
The DisplayMode class defines an equals(DisplayMode) method instead of equals(Object) to pair with the hashCode() method which it also defines. This causes any use of the equals/hashCode constract (Hashtable etc.) to use the equals(Object) inherited from java.lang.Object which implements instance identity equality rather than the apparently intended content equality.
|