RFR: JDK-8308028 Replace more uses of System.getProperty("os.name") with PlatformUtil calls [v3]

Glavo duke at openjdk.org
Sat May 13 17:23:58 UTC 2023


On Sat, 13 May 2023 17:19:34 GMT, Carl Döbbelin <duke at openjdk.org> wrote:

>> replaced implementation of OS checks in HostUtils with calls of PlatformUtil
>
> Carl Döbbelin has updated the pull request incrementally with one additional commit since the last revision:
> 
>   refactored HostUtils

modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/HostUtils.java line 42:

> 40:         @SuppressWarnings("removal")
> 41:         boolean temp = AccessController.doPrivileged((PrivilegedAction<Boolean>) () -> {
> 42:             String osArch = System.getProperty("os.arch").toLowerCase();

Suggestion:

            String osArch = System.getProperty("os.arch").toLowerCase(Locale.ROOT);

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1134#discussion_r1193015665


More information about the openjfx-dev mailing list