RFR: 8304912: Use OperatingSystem enum in java.desktop module
Andrey Turbanov
aturbanov at openjdk.org
Tue Mar 28 19:47:34 UTC 2023
On Tue, 28 Mar 2023 17:59:31 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
> Update classes in the java.desktop module to use the jdk.internal.util.OperatingSystem enum instead of the `os.name` system property to select OS specific behaviors.
sun.awt.OSInfo could be cleanup up:
1. sun.awt.OSInfo#getOSTypeAction - is unused now
2. sun.awt.OSInfo#getOSType could use `OperatingSystem` method instead of relying of sun.awt.OSInfo#OS_NAME property. It seems it's used only in one place - sun.awt.X11.MotifColorUtilities#loadSystemColorsForCDE
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13213#issuecomment-1487500450
More information about the client-libs-dev
mailing list