Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-19047

Incorrect compareTo method

    XMLWordPrintable

Details

    Description

      Current compareTo implementation inside AbstractAnnotation assumes that each line of code have just one annotation which is not always true. If that happens exception during sorting is thrown. Method can be overriden to use also e.g. annotation message and key but it would be best to use the column numbers which are unavailable for derived classes.

      Attachments

        Activity

          dpapierniak Dariusz Papierniak created issue -
          scm_issue_link SCM/JIRA link daemon made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 150494 ] JNJira + In-Review [ 193546 ]

          People

            drulli Ulli Hafner
            dpapierniak Dariusz Papierniak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: