Skip to content

Commit

Permalink
Enforce AnnotateNullableMethods going forward
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Oct 25, 2024
1 parent bfc9a44 commit 4423bfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/META-INF/rewrite/openrewrite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ displayName: Recipe nullability best practices
description: Use JSpecify nullable annotations; drop Nonnull annotations; use `NullMarked` on `package-info.java` instead.
recipeList:
- org.openrewrite.java.jspecify.MigrateFromOpenRewriteAnnotations
- org.openrewrite.staticanalysis.NullableOnMethodReturnType
- org.openrewrite.java.RemoveAnnotation:
annotationPattern: '@org.jetbrains.annotations.NotNull'
- org.openrewrite.java.RemoveAnnotation:
annotationPattern: '@javax.annotation.Nonnull'
- org.openrewrite.java.RemoveAnnotation:
annotationPattern: '@jakarta.annotation.Nonnull'
- org.openrewrite.java.jspecify.MigrateToJspecify
- org.openrewrite.staticanalysis.AnnotateNullableMethods
- org.openrewrite.staticanalysis.NullableOnMethodReturnType

0 comments on commit 4423bfc

Please sign in to comment.