Duplicate :
|
The class java.awt.geom.Area overrides equals with class name as a signature. Hence it does not override Object equals properly (reference: "Effective Java" Item #7) Note: This bug is flagged by a program that checks for programming errors mentioned in "Effective Java" along with other checks. The classes below needs to be considered as well: java.awt.DisplayMode java.awt.font.GlyphVector The class below overrides equals() but not hashCode(): java.awt.Font$FontLineMetrics
|