Skip to content

Commit 5cb310d

Browse files
authored
Update Java version check from 25 to 22
Fixes #937
1 parent 7f12502 commit 5cb310d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/openrewrite/java/migrate/lang/ReplaceUnusedVariablesWithUnderscore.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public String getDescription() {
5151

5252
@Override
5353
public TreeVisitor<?, ExecutionContext> getVisitor() {
54-
return Preconditions.check(new UsesJavaVersion<>(25), new JavaIsoVisitor<ExecutionContext>() {
54+
return Preconditions.check(new UsesJavaVersion<>(22), new JavaIsoVisitor<ExecutionContext>() {
5555
@Override
5656
public J.ForEachLoop visitForEachLoop(J.ForEachLoop forLoop, ExecutionContext ctx) {
5757
J.ForEachLoop l = super.visitForEachLoop(forLoop, ctx);

0 commit comments

Comments
 (0)