Migrate from Micrometer annotations to JSpecify
MSALReplace the io.micrometer.core.lang @Nullable and @NonNull annotations with their JSpecify equivalents, adding the JSpecify dependency where needed.
org. openrewrite. java. jspecify. MigrateFromMicrometerAnnotationsmod run . --recipe= org. openrewrite. java. jspecify. MigrateFromMicrometerAnnotationsInstall 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.
- Add Gradle or Maven dependency
org.jspecify:jspecify:1.0.0 - Remove annotation from
voidmethodio.micrometer.core.lang.*ull* - Move annotation to array type
io.micrometer.core.lang.*ull* - Change type
io.micrometer.core.lang.Nullabletoorg.jspecify.annotations.Nullable - Change type
io.micrometer.core.lang.NonNulltoorg.jspecify.annotations.NonNull - Move annotation to type instead of field
- Remove duplicate annotations