Use AtomicReference#weakCompareAndSetPlain(T, T)
MSALUse AtomicReference#weakCompareAndSetPlain(T, T) instead of the deprecated AtomicReference#weakCompareAndSet(T, T) in Java 9 or higher.
org. openrewrite. java. migrate. concurrent. MigrateAtomicReferenceWeakCompareAndSetToWeakCompareAndSetPlainmod run . --recipe= org. openrewrite. java. migrate. concurrent. MigrateAtomicReferenceWeakCompareAndSetToWeakCompareAndSetPlainInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.
Recipe list
It runs these recipes, in this order.