Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8348308

Make fields of ListSelectionEvent final

XMLWordPrintable

      The three private fields of javax.swing.event.ListSelectionEvent — firstIndex, lastIndex, isAdjusting — are assigned their values in the constructor and are never modified.

      The values aren't supposed to be modified, the fields should be marked as final.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: