Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-25638

FindBugs: Class defines equals() and uses Object.hashCode()

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              payert Tamas Payer
              payert Tamas Payer
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m