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

Incorrect compareTo method

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: