RFR: 8342508: Use latch in BasicMenuUI/bug4983388.java instead of delay [v3]
Alexey Ivanov
aivanov at openjdk.org
Mon Oct 21 14:13:44 UTC 2024
On Mon, 21 Oct 2024 10:01:20 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
>> Alexey Ivanov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Use method reference to dispose of the frame
>
> test/jdk/javax/swing/plaf/basic/BasicMenuUI/4983388/bug4983388.java line 89:
>
>> 87: }
>> 88:
>> 89: SwingUtilities.invokeAndWait(new Runnable() {
>
> `createAndShowGUI` method is `static`, I suggest using method reference.
Method references can be used in non-static context by providing an instance to the left of the double colon.
I did it on Friday but I forgot to push the change.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21585#discussion_r1808904143
More information about the client-libs-dev
mailing list