From 7b8ffe472cde32303714c998e17e9075f4a27223 Mon Sep 17 00:00:00 2001 From: timo <1398557+timo-a@users.noreply.github.com> Date: Wed, 15 Jan 2025 17:02:01 +0100 Subject: [PATCH] fix suggestions from reviewbot --- .../java/migrate/lombok/NegligentlyConvertEquals.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEquals.java b/src/main/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEquals.java index 57dd5a3e5..3581306fe 100644 --- a/src/main/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEquals.java +++ b/src/main/java/org/openrewrite/java/migrate/lombok/NegligentlyConvertEquals.java @@ -86,8 +86,8 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex return classDecl; } - public @Nullable J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, ExecutionContext ctx) { - public J.MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, ExecutionContext ctx) { + @Override + public J.@Nullable MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, ExecutionContext ctx) { J.ClassDeclaration classDecl = getCursor().firstEnclosingOrThrow(J.ClassDeclaration.class); // The enclosing class of a J.MethodDeclaration must be known for a MethodMatcher to match it