Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-14525

InmutableMetric equality not set properly

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 30.0.0
    • Next
    • None
    • Security Level: Default (Default Security Scheme)
    • None
    • 2

    Description

      The InmutableMetric class has hashCode(), toString() and equals() methods are out of sync in OIA.

      equals() and hashCode() only considers IntrinsicTags while toString considers all (intrinsic, meta and externals tags) 

      Unit tests will give incorrect results when comparing instances of this class because of this.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              aramos-vizcarra Alberto
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: