RFR: 8342453: Remove calls to doPrivileged in javafx.graphics/com.sun.javafx.tk [v2]
Andy Goryachev
angorya at openjdk.org
Wed Oct 30 20:46:48 UTC 2024
On Wed, 30 Oct 2024 20:40:01 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:
>> That's an interesting suggestion: trading a new method for a lambda (the prior code used a lambda to pass to the doPrivileged, so it's also less of a delta). I'll take a look at it and see if it looks better to me.
>
> I decided to make this change. Thanks for the suggestion.
This looks useful.
I wonder if it would make sense to create a utility method in some common Util class?
public static boolean initBoolean(BooleanSupplier c) { return c.getAsBoolean(); }
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1608#discussion_r1823367399
More information about the openjfx-dev
mailing list