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