diff --git a/src/main/java/org/openrewrite/java/migrate/lombok/LombokUtils.java b/src/main/java/org/openrewrite/java/migrate/lombok/LombokUtils.java index 74e967228..38db56719 100644 --- a/src/main/java/org/openrewrite/java/migrate/lombok/LombokUtils.java +++ b/src/main/java/org/openrewrite/java/migrate/lombok/LombokUtils.java @@ -161,10 +161,9 @@ public static boolean isEffectivelySetter(J.MethodDeclaration method) { return // assigned value is exactly the parameter - assignment.getAssignment().toString().equals(paramName) // type of parameter and field have to match - && - param.getType().equals(fieldAccess.getType()); - && param.getType().equals(fieldAccess.getType()); + assignment.getAssignment().toString().equals(paramName) && + param.getType().equals(fieldAccess.getType()) // type of parameter and field have to match + ; }