From aff2872857314f132f8ac9481e1733cc95ad484a Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Fri, 26 Jan 2024 22:58:38 +0100 Subject: [PATCH] Use Java 21 locally already --- .sdkmanrc | 2 +- src/main/resources/META-INF/rewrite/java-version-21.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.sdkmanrc b/.sdkmanrc index f3b3756686..ed31de442e 100644 --- a/.sdkmanrc +++ b/.sdkmanrc @@ -1,3 +1,3 @@ # Enable auto-env through the sdkman_auto_env config # Add key=value pairs of SDKs to use below -java=17.0.9-tem +java=21.0.2-tem 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 1929a0f7ea..b55f72e71d 100644 --- a/src/main/resources/META-INF/rewrite/java-version-21.yml +++ b/src/main/resources/META-INF/rewrite/java-version-21.yml @@ -79,6 +79,7 @@ tags: recipeList: - org.openrewrite.java.migrate.util.ListFirstAndLast - org.openrewrite.java.migrate.util.IteratorNext + - org.openrewrite.java.migrate.util.StreamFindFirst - org.openrewrite.java.ChangeMethodName: methodPattern: java.util.SortedSet first() newMethodName: getFirst