Skip to content

Commit

Permalink
Update UpgradeJavaVersion.java again
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek authored Feb 7, 2024
1 parent 3f532c3 commit 624e412
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
SourceFile source = (SourceFile) tree;

if (source instanceof G.CompilationUnit && new IsBuildGradle<ExecutionContext>().visit(source, ctx) != source) {
source = (SourceFile) new UpdateJavaCompatibility(version, null, null, false, null, null).getVisitor().visitNonNull(source, ctx);
source = (SourceFile) new UpdateJavaCompatibility(version, null, null, false, null).getVisitor().visitNonNull(source, ctx);
} else if (source instanceof Xml.Document) {
source = (SourceFile) new MavenUpdateJavaVersionVisitor().visitNonNull(source, ctx);
}
Expand Down

0 comments on commit 624e412

Please sign in to comment.