RFR: 8290278: JavaDoc of index parameter of method JTabbedPane.insertTab
Phil Race
prr at openjdk.org
Sun Jul 17 23:39:10 UTC 2022
On Thu, 14 Jul 2022 15:58:18 GMT, Tejesh R <tr at openjdk.org> wrote:
> JavaDoc of _JTabbedPane.inseetTab()_ is updated. The index position to insert a new tab ranges from 0 to _TabCount_(Position after the last tab position), the same is updated from _> 0_ to _>= 0_ .
src/java.desktop/share/classes/javax/swing/JTabbedPane.java line 727:
> 725: * ({@code >= 0 and <= getTabCount()})
> 726: *
> 727: * @throws IndexOutOfBoundsException if the index is out of range
Seems fine. The existing text actually contradicts the exception text immediately below.
Even though it is therefore arguably a typo, I suggest even so that a CSR be filed for this.
-------------
PR: https://git.openjdk.org/jdk/pull/9496
More information about the client-libs-dev
mailing list