8348308: Make fields of ListSelectionEvent final

Reviewed-by: honkar, azvegint
This commit is contained in:
Alexey Ivanov 2025-01-23 10:51:53 +00:00
parent 17df51516a
commit 89bfcb8db0

View File

@ -53,9 +53,9 @@ import javax.swing.ListSelectionModel;
@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