RFR: 8378197: Remove AppContext from sun/swing/plaf/DesktopProperty.java
Sergey Bylokhov
serb at openjdk.org
Thu Feb 19 23:10:44 UTC 2026
On Wed, 18 Feb 2026 19:57:15 GMT, Phil Race <prr at openjdk.org> wrote:
> A straightforward removal of a per-AppContext flag which can now be static
src/java.desktop/share/classes/sun/swing/plaf/DesktopProperty.java line 98:
> 96: */
> 97: private static synchronized void setUpdatePending(boolean update) {
> 98: updatePending = update;
It seems the synchronized accessors are no longer needed? And the field itself marked as volatile can be used instead, since both of these methods are called from just the updateUI() method?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29801#discussion_r2830585643
More information about the client-libs-dev
mailing list