Migrate javax.annotations to SpotBugs annotations

MSAL

SpotBugs is the preferred replacement of JSR-305 annotations for Jenkins plugins.

org.openrewrite.jenkins.JavaxAnnotationsToSpotbugs
mod run . --recipe=org.openrewrite.jenkins.JavaxAnnotationsToSpotbugs

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. Change type Nonnull to NonNull
  2. Rename package name javax.annotation to edu.umd.cs.findbugs.annotations