Skip to content

Commit

Permalink
Declare EmptyBlockVisitor templates as context-free
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jun 30, 2023
1 parent f77bd23 commit 8dfd796
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,9 @@
public class EmptyBlockVisitor<P> extends JavaIsoVisitor<P> {
EmptyBlockStyle emptyBlockStyle;
JavaTemplate throwException = JavaTemplate.builder("throw new #{}(#{any(String)});")
.contextSensitive()
.imports("java.io.UncheckedIOException")
.build();
JavaTemplate continueStatement = JavaTemplate.builder("continue;").contextSensitive().build();
JavaTemplate continueStatement = JavaTemplate.builder("continue;").build();

@Override
public J.WhileLoop visitWhileLoop(J.WhileLoop whileLoop, P p) {
Expand Down

0 comments on commit 8dfd796

Please sign in to comment.