RFR: 8341982: Simplify JButton/bug4323121.java [v2]

Harshitha Onkar honkar at openjdk.org
Tue Oct 15 01:04:15 UTC 2024


On Mon, 14 Oct 2024 15:59:26 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> Ok...
>
> If anyone else thinks using an anonymous class here makes the code shorter and cleaner, I'll go for it.

Both approaches sounds okay to me, but adding an anonymous class similar to WindowAdapter() may be clearer.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21475#discussion_r1800283230


More information about the client-libs-dev mailing list