On Mon, 14 Oct 2024 15:55:34 GMT, Abhishek Kumar <abhis...@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

Reply via email to