RFR: 8342456: Remove calls to doPrivileged in javafx.graphics/other [v2]
Anirvan Sarkar
asarkar at openjdk.org
Thu Oct 31 19:46:36 UTC 2024
On Thu, 31 Oct 2024 15:21:01 GMT, Glavo <duke at openjdk.org> wrote:
>> Lukasz Kostyra has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Scene: Remove missed doPrivileged use
>
> modules/javafx.graphics/src/main/java/javafx/application/Preloader.java line 107:
>
>> 105:
>> 106: // Too bad this isn't already available in a Java core class
>> 107: private static final String lineSeparator;
>
> Suggestion:
>
> private static final String lineSeparator = System.getProperty("line.separator", "\n");
I would suggest to remove the variable `lineSeparator` and simply use `System.lineSeparator()`.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1619#discussion_r1825082335
More information about the openjfx-dev
mailing list