From f7a3f347e53bbb5822f96dc438de8795ef6d7b8d Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Fri, 30 Aug 2024 12:02:07 +0200 Subject: [PATCH] Include `MigrateToJspecify` with best practices --- src/main/resources/META-INF/rewrite/openrewrite.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/resources/META-INF/rewrite/openrewrite.yml b/src/main/resources/META-INF/rewrite/openrewrite.yml index 7033654..20455c8 100644 --- a/src/main/resources/META-INF/rewrite/openrewrite.yml +++ b/src/main/resources/META-INF/rewrite/openrewrite.yml @@ -71,18 +71,10 @@ description: Use JSpecify nullable annotations; drop Nonnull annotations; use `N recipeList: - org.openrewrite.java.jspecify.MigrateFromOpenRewriteAnnotations - org.openrewrite.staticanalysis.NullableOnMethodReturnType - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: org.jetbrains.annotations.Nullable - newFullyQualifiedTypeName: org.jspecify.annotations.Nullable - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: javax.annotation.Nullable - newFullyQualifiedTypeName: org.jspecify.annotations.Nullable - - org.openrewrite.java.ChangeType: - oldFullyQualifiedTypeName: jakarta.annotation.Nullable - newFullyQualifiedTypeName: org.jspecify.annotations.Nullable - 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