RFR: 8342993: Remove uses of AccessController and AccessControlContext from JavaFX [v2]
Michael Strauß
mstrauss at openjdk.org
Thu Nov 14 23:53:12 UTC 2024
On Thu, 14 Nov 2024 23:11:23 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
>> Kevin Rushforth has updated the pull request incrementally with one additional commit since the last revision:
>>
>> additional comments
>
> modules/javafx.graphics/src/main/java/com/sun/javafx/tk/Toolkit.java line 98:
>
>> 96:
>> 97: // Used as the (dummy) value for the various listener maps
>> 98: private static final Object dummyObj = new Object();
>
> minor: maybe use all-uppercase name for this static final object?
>
> we could also be using Boolean.TRUE (or null), since there is a comment down below explaining the purpose of these maps.
>
> curiously, there is no WeakHashSet.
There is no need for `WeakHashSet`, because it would be equivalent to `Collections.newSetFromMap(new WeakHashMap<>())`.
`HashSet` already uses `HashMap` in its implementation.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/1638#discussion_r1843018433
More information about the openjfx-dev
mailing list