Skip to content

Commit 87495fd

Browse files
committed
rename method
1 parent 80ec548 commit 87495fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/org/openrewrite/java/migrate/lombok/LombokUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
class LombokUtils {
3333

34-
static boolean isEffectivelyGetter(J.MethodDeclaration method) {
34+
static boolean isGetter(J.MethodDeclaration method) {
3535
// Check signature: no parameters
3636
if (!(method.getParameters().get(0) instanceof J.Empty) || method.getReturnTypeExpression() == null) {
3737
return false;

src/main/java/org/openrewrite/java/migrate/lombok/UseLombokGetter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public J.ClassDeclaration visitClassDeclaration(J.ClassDeclaration classDecl, Ex
9090

9191
@Override
9292
public J.@Nullable MethodDeclaration visitMethodDeclaration(J.MethodDeclaration method, ExecutionContext ctx) {
93-
if (method.getMethodType() != null && LombokUtils.isEffectivelyGetter(method)) {
93+
if (method.getMethodType() != null && LombokUtils.isGetter(method)) {
9494
Set<Finding> set = getCursor().getNearestMessage(FIELDS_TO_DECORATE_KEY);
9595
Expression returnExpression = ((J.Return) method.getBody().getStatements().get(0)).getExpression();
9696
if (returnExpression instanceof J.Identifier) {

0 commit comments

Comments
 (0)