Skip to content

Commit

Permalink
8348308: Make fields of ListSelectionEvent final
Browse files Browse the repository at this point in the history
Reviewed-by: honkar, azvegint
  • Loading branch information
aivanov-jdk committed Jan 23, 2025
1 parent 17df515 commit 89bfcb8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
@SuppressWarnings("serial") // Same-version serialization only
public class ListSelectionEvent extends EventObject
{
private int firstIndex;
private int lastIndex;
private boolean isAdjusting;
private final int firstIndex;
private final int lastIndex;
private final boolean isAdjusting;

/**
* Represents a change in selection status between {@code firstIndex} and
Expand Down

1 comment on commit 89bfcb8

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.