RFR: 8342456: Remove calls to doPrivileged in javafx.graphics/other [v2]

Kevin Rushforth kcr at openjdk.org
Thu Oct 31 23:14:37 UTC 2024


On Thu, 31 Oct 2024 19:52:17 GMT, Phil Race <prr at openjdk.org> wrote:

>> I would suggest to remove the variable `lineSeparator` and simply use `System.lineSeparator()`.
>
> I agree. That has been available since 1.7. But possibly this code is old enough to pre-date that ..

This code possibly dates from JDK 6. If we want to change it (which we probably should), let's do this as a follow-up, since all of the doPrivileged PRs are intended to be behavior neutral.

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1619#discussion_r1825270281


More information about the openjfx-dev mailing list