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