RFR: 8364146: JList getScrollableUnitIncrement return 0 [v7]
Tejesh R
tr at openjdk.org
Tue Nov 11 11:23:25 UTC 2025
On Tue, 11 Nov 2025 06:50:25 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> It seems JList.getScrollableUnitIncrement can sometime return 0 instead of positive number which is not specified in the javadoc which can lead to confusion. Clarified javadoc as to when it can return 0.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>
> spec wording
src/java.desktop/share/classes/javax/swing/JList.java line 2510:
> 2508: * @param direction less or equal to zero to scroll up/back,
> 2509: * greater than zero for down/forward
> 2510: * @return the non-negative "unit" increment value for scrolling in the specified direction
I guess the length is exceeding 80 column.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/26500#discussion_r2513848654
More information about the client-libs-dev
mailing list