This inspection reports classes that override method equals() but do not override method hashCode() , or vice versa, which could potentially lead to problems when class is added to a Collection .