Duplicate :
|
The classes java.beans.PropertyDescriptor() and java.beans.IndexedPropertyDescriptor() both override equals() but not hashCode(). The hashCode method from Object class is used instead. Note: This bug is flagged by a program that checks for programming errors mentioned in "Effective Java" along with other checks.