Skip to content

Commit

Permalink
OpenRewrite 8.0 compatibility
Browse files Browse the repository at this point in the history
Change visibility modifier of generated `getVisitor()` method from `protected` to `public`.
  • Loading branch information
knutwannheden committed May 2, 2023
1 parent 2c8f8ac commit 3550870
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public void visitClassDef(JCTree.JCClassDecl tree) {
out.write(" }\n");
out.write("\n");
out.write(" @Override\n");
out.write(" protected TreeVisitor<?, ExecutionContext> getVisitor() {\n");
out.write(" public TreeVisitor<?, ExecutionContext> getVisitor() {\n");
out.write(" return new JavaVisitor<ExecutionContext>() {\n");
out.write(" final JavaTemplate before0 = JavaTemplate.compile(this, \""
+ descriptor.beforeTemplates.get(0).getName().toString() + "\", "
Expand Down

0 comments on commit 3550870

Please sign in to comment.