On Mon, 10 Apr 2023 16:56:43 GMT, Roger Riggs <[email protected]> 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 incrementally with one additional 
> commit since the last revision:
> 
>   Revert copyright in unmodified file

src/java.desktop/share/classes/sun/awt/OSInfo.java line 83:

> 81:     }
> 82: 
> 83:     private static final PrivilegedAction<OSType> osTypeAction = new 
> PrivilegedAction<OSType>() {

As this field is not used in production code anymore, I think it makes sense to 
inline it (allocate directly in `sun.awt.OSInfo#getOSTypeAction`)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13213#discussion_r1162374596

Reply via email to