From 48c94b5f4ebf27f3ab589096018c15dd78b61fb7 Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Sat, 13 Jul 2024 02:56:02 +0200 Subject: [PATCH] refactor: OpenRewrite best practices --- .../staticanalysis/AddSerialAnnotationToserialVersionUID.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUID.java b/src/main/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUID.java index 9c209d93c..846685341 100644 --- a/src/main/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUID.java +++ b/src/main/java/org/openrewrite/staticanalysis/AddSerialAnnotationToserialVersionUID.java @@ -58,9 +58,9 @@ public TreeVisitor getVisitor() { ), new JavaIsoVisitor() { @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; }