RFR: 8341982: Simplify JButton/bug4323121.java [v2]
Alexey Ivanov
aivanov at openjdk.org
Mon Oct 14 16:02:10 UTC 2024
On Mon, 14 Oct 2024 15:55:34 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
>> I removed the unneeded listener and inlined creation of the event handler.
>>
>> Thus, I kept the current structure of test code. I prefer it this way for consistency with `JButton/bug4490179.java` in https://github.com/openjdk/jdk/pull/21474. Both tests are really similar, and I think consistent coding helps.
>
> Ok...
If anyone else thinks using an anonymous class here makes the code shorter and cleaner, I'll go for it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/21475#discussion_r1799761004
More information about the client-libs-dev
mailing list