Skip to content

Commit

Permalink
Update src/main/java/org/openrewrite/java/migrate/lombok/LombokUtils.…
Browse files Browse the repository at this point in the history
…java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
timo-a and github-actions[bot] committed Jan 1, 2025
1 parent 2716b85 commit 2e04ef6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +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
assignment.getAssignment().toString().equals(paramName) // type of parameter and field have to match
&&
param.getType().equals(fieldAccess.getType());
&& param.getType().equals(fieldAccess.getType());

}
Expand Down

0 comments on commit 2e04ef6

Please sign in to comment.