Use modernized java.util.concurrent APIs
MSALThe Java concurrent APIs were updated in Java 9 and those changes resulted in certain APIs being deprecated. This recipe updates an application to replace the deprecated APIs with their modern alternatives.
org. openrewrite. java. migrate. concurrent. JavaConcurrentAPIsmod run . --recipe= org. openrewrite. java. migrate. concurrent. JavaConcurrentAPIsInstall 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.
- Use
AtomicBoolean#weakCompareAndSetPlain(boolean, boolean) - Use
AtomicInteger#weakCompareAndSetPlain(int, int) - Use
AtomicIntegerArray#weakCompareAndSetPlain(int, int, int) - Use
AtomicLong#weakCompareAndSetPlain(long, long) - Use
AtomicLongArray#weakCompareAndSetPlain(int, long, long) - Use
AtomicReference#weakCompareAndSetPlain(T, T) - Use
AtomicReferenceArray#weakCompareAndSetPlain(int, T, T)