Migrate from OpenRewrite annotations to JSpecify
MSALMigrate from OpenRewrite's JSR-305 meta-annotations to JSpecify.
org. openrewrite. java. jspecify. MigrateFromOpenRewriteAnnotationsmod run . --recipe= org. openrewrite. java. jspecify. MigrateFromOpenRewriteAnnotationsInstall 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.
- Move annotation to type instead of field
- Change type
org.openrewrite.internal.lang.Nullabletoorg.jspecify.annotations.Nullable - Change type
NonNullApitoNullMarked - Change type
org.openrewrite.internal.lang.NonNulltoorg.jspecify.annotations.NonNull - Add Gradle or Maven dependency
org.jspecify:jspecify:latest.release - Add Gradle or Maven dependency
org.jspecify:jspecify:latest.release