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