RFR: JDK-8371364 : Refactor javax/swing/JFileChooser/FileSizeCheck.java to use Util.findComponent()

Alexey Ivanov aivanov at openjdk.org
Thu Nov 6 13:35:07 UTC 2025


On Thu, 6 Nov 2025 00:54:45 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

> FileSizeCheck.java test changes related to addition of new method to Util - https://github.com/openjdk/jdk/pull/27944.

Changes requested by aivanov (Reviewer).

test/jdk/javax/swing/JFileChooser/FileSizeCheck.java line 240:

> 238:     private static JTable findTable(final Container container) {
> 239:         Component result = Util.findComponent(container,
> 240:                                          c -> c instanceof JTable);

Suggestion:

        Component result = Util.findComponent(container,
                                              c -> c instanceof JTable);

Align the second parameter.

-------------

PR Review: https://git.openjdk.org/jdk/pull/28168#pullrequestreview-3428208525
PR Review Comment: https://git.openjdk.org/jdk/pull/28168#discussion_r2498980214


More information about the client-libs-dev mailing list