From d26d0919630ca86d8fcb7beb9c00b3902d593df3 Mon Sep 17 00:00:00 2001 From: bhavanapidapa Date: Fri, 6 Sep 2024 14:29:37 -0500 Subject: [PATCH 1/2] Modified the RemovedSubjectMethods recipe --- src/main/resources/META-INF/rewrite/java-version-21.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/META-INF/rewrite/java-version-21.yml b/src/main/resources/META-INF/rewrite/java-version-21.yml index b224fc6405..f219434220 100644 --- a/src/main/resources/META-INF/rewrite/java-version-21.yml +++ b/src/main/resources/META-INF/rewrite/java-version-21.yml @@ -110,8 +110,8 @@ recipeList: methodPattern: javax.security.auth.Subject getSubject() newMethodName: current - org.openrewrite.java.ChangeMethodName: - methodPattern: javax.security.auth.Subject callAs() - newMethodName: doAs + methodPattern: javax.security.auth.Subject doAs() + newMethodName: callAs --- type: specs.openrewrite.org/v1beta/recipe name: org.openrewrite.java.migrate.DeleteDeprecatedFinalize From 2bb7e5d86cafae8d90f7d518b9025b7cc3dbc22f Mon Sep 17 00:00:00 2001 From: bhavanapidapa Date: Thu, 12 Sep 2024 15:52:11 -0500 Subject: [PATCH 2/2] Added the rule to the to list --- src/main/resources/META-INF/rewrite/java-version-21.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/resources/META-INF/rewrite/java-version-21.yml b/src/main/resources/META-INF/rewrite/java-version-21.yml index f219434220..5a7c6ca4c7 100644 --- a/src/main/resources/META-INF/rewrite/java-version-21.yml +++ b/src/main/resources/META-INF/rewrite/java-version-21.yml @@ -35,6 +35,7 @@ recipeList: - org.openrewrite.github.SetupJavaUpgradeJavaVersion - org.openrewrite.java.migrate.UpgradePluginsForJava21 - org.openrewrite.java.migrate.DeleteDeprecatedFinalize + - org.openrewrite.java.migrate.RemovedSubjectMethods --- type: specs.openrewrite.org/v1beta/recipe