RFR: 8348308: Make fields of ListSelectionEvent final

Alexey Ivanov aivanov at openjdk.org
Wed Jan 22 20:30:43 UTC 2025


The fields of `ListSelectionEvent` are set in the constructor and are never modified, mark the fields — `firstIndex`, `lastIndex`, `isAdjusting` — with the `final` modifier.

-------------

Commit messages:
 - 8348308: Make fields of ListSelectionEvent final

Changes: https://git.openjdk.org/jdk/pull/23243/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23243&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8348308
  Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/23243.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23243/head:pull/23243

PR: https://git.openjdk.org/jdk/pull/23243


More information about the client-libs-dev mailing list