-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
7
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
ListSelectionModels JavaDoc describes the value -1 to be returned for getMinSelectionIndex(), getMaxSelectionIndex() ... if the selection is empty.
A constant NO_ROW_SELECTED = -1; could be helpful for clients of ListSelectionModel that check against empty selections.
JUSTIFICATION :
usage of constants is generally preferred over usage of numbers like -1. It makes the code more readable
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
provide the constant NO_ROW_SELECTED = -1 in ListSelectionModel
ListSelectionModels JavaDoc describes the value -1 to be returned for getMinSelectionIndex(), getMaxSelectionIndex() ... if the selection is empty.
A constant NO_ROW_SELECTED = -1; could be helpful for clients of ListSelectionModel that check against empty selections.
JUSTIFICATION :
usage of constants is generally preferred over usage of numbers like -1. It makes the code more readable
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
provide the constant NO_ROW_SELECTED = -1 in ListSelectionModel