Migrate from SpotBugs annotations to JSpecify
MSALMigrate from SpotBugs edu.umd.cs.findbugs.annotations annotations to JSpecify.
org. openrewrite. java. jspecify. MigrateFromSpotBugsAnnotationsmod run . --recipe= org. openrewrite. java. jspecify. MigrateFromSpotBugsAnnotationsInstall 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
voidmethodedu.umd.cs.findbugs.annotations.Nullable - Remove annotation from
voidmethodedu.umd.cs.findbugs.annotations.CheckForNull - Remove annotation from
voidmethodedu.umd.cs.findbugs.annotations.PossiblyNull - Remove annotation from
voidmethodedu.umd.cs.findbugs.annotations.NonNull - Move annotation to array type
edu.umd.cs.findbugs.annotations.*ull* - Change type
edu.umd.cs.findbugs.annotations.Nullabletoorg.jspecify.annotations.Nullable - Change type
CheckForNulltoNullable - Change type
PossiblyNulltoNullable - Change type
edu.umd.cs.findbugs.annotations.NonNulltoorg.jspecify.annotations.NonNull - Move annotation to type instead of field
- Remove duplicate annotations