RFR: 8304912: Use OperatingSystem enum in java.desktop module [v2]
Andrey Turbanov
aturbanov at openjdk.org
Tue Apr 4 22:00:09 UTC 2023
On Tue, 4 Apr 2023 00:23:07 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.
>
> Roger Riggs has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>
> - Merge branch 'master' into 8304912-use-os-desktop
> - Use OperatingSystem.isAix
> - Remove unused os.arch system property
> - Apply OperatingSystem enum instead of os.name to java.desktop module
Found another couple of places:
https://github.com/openjdk/jdk/blob/7cf24d1c06142a3bab9cce5cd0ba34b8bbccf00f/src/java.desktop/unix/classes/sun/awt/X11/MotifColorUtilities.java#L641
https://github.com/openjdk/jdk/blob/7cf24d1c06142a3bab9cce5cd0ba34b8bbccf00f/src/java.desktop/unix/classes/sun/awt/X11/XScrollbarPeer.java#L78
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13213#issuecomment-1496652582
More information about the client-libs-dev
mailing list