Skip to content

Commit

Permalink
refactor: OpenRewrite best practices
Browse files Browse the repository at this point in the history
  • Loading branch information
timtebeek committed Jul 13, 2024
1 parent 9dc027c commit 48c94b5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
),
new JavaIsoVisitor<ExecutionContext>() {
@Override
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, ExecutionContext executionContext) {
public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, ExecutionContext ctx) {
if (TypeUtils.isAssignableTo("java.io.Serializable", classDecl.getType())) {
return super.visitClassDeclaration(classDecl, executionContext);
return super.visitClassDeclaration(classDecl, ctx);
}
return classDecl;
}
Expand Down

0 comments on commit 48c94b5

Please sign in to comment.