Skip to content

Commit bbbefc0

Browse files
committed
Move a last set of && to the previous line
1 parent da84cdf commit bbbefc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public class SummarizeSetter extends Recipe {
3434

3535
@Override
3636
public String getDisplayName() {
37-
return "Summarize @Setter on fields to class level annotation";
37+
return "Summarize `@Setter` on fields to class level annotation";
3838
}
3939

4040
@Override
@@ -122,8 +122,8 @@ private J.VariableDeclarations fixFormat(J.VariableDeclarations initial, J.Varia
122122

123123
@Override
124124
public J.@Nullable Annotation visitAnnotation(J.Annotation annotation, ExecutionContext ctx) {
125-
boolean isSetterAnnotated = annotation.getSimpleName().equals("Setter")
126-
&& annotation.getArguments() == null; //no Access level, or other arguments
125+
boolean isSetterAnnotated = annotation.getSimpleName().equals("Setter") &&
126+
annotation.getArguments() == null; //no Access level, or other arguments
127127

128128
return isSetterAnnotated &&
129129
//should only trigger on field annotation, not class annotation

0 commit comments

Comments
 (0)