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

EventUtils.eventsMatch() fails if nodeId is greater than 127

    XMLWordPrintable

Details

    • Horizon - March 21st 2018

    Description

      Comparing Long objects using the == operator fails for values greater than 127. The equals() method should be used, instead.

      https://github.com/OpenNMS/opennms/blob/2ccf1b39b150232ae6bdac3274aefd6c58d1de8f/opennms-model/src/main/java/org/opennms/netmgt/model/events/EventUtils.java#L575

       

       

      Attachments

        Activity

          People

            ranger Benjamin Reed
            wkeaney Will Keaney
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.