Use AtomicBoolean#weakCompareAndSetPlain(boolean, boolean)
MSALUse AtomicBoolean#weakCompareAndSetPlain(boolean, boolean) instead of the deprecated AtomicBoolean#weakCompareAndSet(boolean, boolean) in Java 9 or higher.
org. openrewrite. java. migrate. concurrent. MigrateAtomicBooleanWeakCompareAndSetToWeakCompareAndSetPlainmod run . --recipe= org. openrewrite. java. migrate. concurrent. MigrateAtomicBooleanWeakCompareAndSetToWeakCompareAndSetPlainInstall 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.