Migrate from OpenRewrite annotations to JSpecify

MSAL

Migrate from OpenRewrite's JSR-305 meta-annotations to JSpecify.

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

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.

  1. Move annotation to type instead of field
  2. Change type org.openrewrite.internal.lang.Nullable to org.jspecify.annotations.Nullable
  3. Change type NonNullApi to NullMarked
  4. Change type org.openrewrite.internal.lang.NonNull to org.jspecify.annotations.NonNull
  5. Add Gradle or Maven dependency org.jspecify:jspecify:latest.release
  6. Add Gradle or Maven dependency org.jspecify:jspecify:latest.release