Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.7.3, 2.7.4, 2.7.5
Description
FindBugs finding:
org.apache.ambari.server.state.alert.MetricSource$JmxInfo defines equals and uses Object.hashCode()
This class overrides equals(Object), but does not override hashCode(), and inherits the implementation of hashCode() from java.lang.Object (which returns the identity hash code, an arbitrary value assigned to the object by the VM). Therefore, the class is very likely to violate the invariant that equal objects must have equal hashcodes.
Attachments
Issue Links
- links to