codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. Java
  3. Jspecify
  4. Migrate from SpotBugs annotations to JSpecify

Migrate from SpotBugs annotations to JSpecify

MSAL

Migrate from SpotBugs edu.umd.cs.findbugs.annotations annotations to JSpecify.

org.openrewrite.java.jspecify.MigrateFromSpotBugsAnnotations
mod run . --recipe=org.openrewrite.java.jspecify.MigrateFromSpotBugsAnnotations

Install 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.

Recipe
  1. Add Gradle or Maven dependency org.jspecify:jspecify:1.0.0
  2. Remove annotation from void method edu.umd.cs.findbugs.annotations.Nullable
  3. Remove annotation from void method edu.umd.cs.findbugs.annotations.CheckForNull
  4. Remove annotation from void method edu.umd.cs.findbugs.annotations.PossiblyNull
  5. Remove annotation from void method edu.umd.cs.findbugs.annotations.NonNull
  6. Move annotation to array type edu.umd.cs.findbugs.annotations.*ull*
  7. Change type edu.umd.cs.findbugs.annotations.Nullable to org.jspecify.annotations.Nullable
  8. Change type CheckForNull to Nullable
  9. Change type PossiblyNull to Nullable
  10. Change type edu.umd.cs.findbugs.annotations.NonNull to org.jspecify.annotations.NonNull
  11. Move annotation to type instead of field
  12. Remove duplicate annotations
© Moderne, 2026
Recipe indexPrivacyTerms