Skip to content

Commit

Permalink
Make UseVarForObject a bit more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Oct 31, 2024
1 parent 58c86fc commit f6f3a7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {


static final class UseVarForObjectVisitor extends JavaIsoVisitor<ExecutionContext> {
private final JavaTemplate template = JavaTemplate.builder("var #{} = #{any()}")
private final JavaTemplate template = JavaTemplate.builder("var #{} = #{any()};")
.contextSensitive()
.javaParser(JavaParser.fromJavaVersion()).build();

Expand Down

0 comments on commit f6f3a7e

Please sign in to comment.