RFR: 5108458: JTable does not properly layout its content [v6]
Tejesh R
tr at openjdk.org
Wed Nov 22 14:39:17 UTC 2023
On Tue, 21 Nov 2023 15:08:34 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Review fix
>
> src/java.desktop/share/classes/sun/swing/SwingUtilities2.java line 2371:
>
>> 2369: return table.getWidth();
>> 2370: }
>> 2371: return table.getParent().getWidth();
>
> The condition `table != null` seems redundant — if it's `null`, the expression `table.getParent()` in the return statement throws NPE.
Not applicable now.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16374#discussion_r1402161989
More information about the client-libs-dev
mailing list