Integrated: 8365389: Remove static color fields from SwingUtilities3 and WindowsMenuItemUI

Phil Race prr at openjdk.org
Thu Aug 21 20:52:12 UTC 2025


On Thu, 14 Aug 2025 16:19:08 GMT, Phil Race <prr at openjdk.org> wrote:

> This refactors some Swing code to pass args instead of using statics
> The bug report suggests some further refactoring which could be considered later, but the most
> important thing to do is to eliminate using statics to pass args.
> I've added one other suggestion from the bug report to have the windows case call SU3 directly rather than via newly added static methods, but for the basic case, I left the pre-existing private instance methods.

This pull request has now been integrated.

Changeset: 3468c6e5
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/3468c6e5ef7e7592cf9484736ce333fbe0eaf34d
Stats:     78 lines in 6 files changed: 14 ins; 50 del; 14 mod

8365389: Remove static color fields from SwingUtilities3 and WindowsMenuItemUI

Reviewed-by: psadhukhan, aivanov, dnguyen

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

PR: https://git.openjdk.org/jdk/pull/26783


More information about the client-libs-dev mailing list