RFR: 8364146: JList getScrollableUnitIncrement return 0
Alisen Chung
achung at openjdk.org
Fri Aug 1 21:56:54 UTC 2025
On Mon, 28 Jul 2025 09:14:48 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.
I think adding an explanation of possible values to the return value makes it too wordy. The explanation of what can be returned should probably be put into the body of the specification. Maybe it would work as a note above the parameters?
-------------
PR Review: https://git.openjdk.org/jdk/pull/26500#pullrequestreview-3080651596
More information about the client-libs-dev
mailing list