If CompareAndSwap is not used, then AtomicReference could be replaced with volatile. It simplified code a bit.
------------- Commit messages: - [PATCH] Avoid AtomicReference in TextComponentPrintable Changes: https://git.openjdk.org/jdk/pull/12018/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12018&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8303213 Stats: 13 lines in 1 file changed: 0 ins; 1 del; 12 mod Patch: https://git.openjdk.org/jdk/pull/12018.diff Fetch: git fetch https://git.openjdk.org/jdk pull/12018/head:pull/12018 PR: https://git.openjdk.org/jdk/pull/12018
