Skip to content

Commit

Permalink
Remove some JavaTemplate.Builder#contextSensitive() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jan 7, 2025
1 parent 0a5c49b commit 37c8568
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
// TODO if we had a `replace()` coordinate on every `Expression`, we wouldn't need the left side of this
final JavaTemplate combinedAssignment = JavaTemplate
.builder("o = (#{any()} #{} #{any()});")
.contextSensitive()
// ok to ignore invalid type info on left-hand side of assignment.
.build();

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public Duration getEstimatedEffortPerOccurrence() {
public TreeVisitor<?, ExecutionContext> getVisitor() {
return new JavaVisitor<ExecutionContext>() {
final JavaTemplate whileLoop = JavaTemplate.builder("while(#{any(boolean)}) {}")
.contextSensitive()
.build();

@Override
Expand Down

0 comments on commit 37c8568

Please sign in to comment.