diff --git a/src/main/resources/META-INF/rewrite/openrewrite.yml b/src/main/resources/META-INF/rewrite/openrewrite.yml index 4e3272f..bc112bc 100644 --- a/src/main/resources/META-INF/rewrite/openrewrite.yml +++ b/src/main/resources/META-INF/rewrite/openrewrite.yml @@ -67,8 +67,18 @@ name: org.openrewrite.recipes.RecipeNullabilityBestPractices displayName: Recipe nullability best practices description: Use OpenRewrite internal nullability annotations; drop JetBrains annotations; use `package-info.java` instead. recipeList: -- org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: org.jetbrains.annotations.Nullable - newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable -- org.openrewrite.java.RemoveAnnotation: - annotationPattern: '@org.jetbrains.annotations.NotNull' + - org.openrewrite.java.ChangeType: + oldFullyQualifiedTypeName: org.jetbrains.annotations.Nullable + newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable + - org.openrewrite.java.ChangeType: + oldFullyQualifiedTypeName: javax.annotation.Nullable + newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable + - org.openrewrite.java.ChangeType: + oldFullyQualifiedTypeName: jakarta.annotation.Nullable + newFullyQualifiedTypeName: org.openrewrite.internal.lang.Nullable + - org.openrewrite.java.RemoveAnnotation: + annotationPattern: '@org.jetbrains.annotations.NotNull' + - org.openrewrite.java.RemoveAnnotation: + annotationPattern: '@javax.annotation.NotNull' + - org.openrewrite.java.RemoveAnnotation: + annotationPattern: '@jakarta.annotation.NotNull'