Skip to content

Commit

Permalink
UseVarForObjectVisitor should use a contextSensitive template
Browse files Browse the repository at this point in the history
Fixes #384
  • Loading branch information
timtebeek committed Jan 4, 2024
1 parent 644084b commit eca9dc1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {

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


Expand Down

0 comments on commit eca9dc1

Please sign in to comment.