Skip to content

Commit

Permalink
UseLambdaForFunctionalInterface: Use Repeat#repeatUntilStable()
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Jan 18, 2024
1 parent ee05113 commit 3a6dff6
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public Duration getEstimatedEffortPerOccurrence() {

@Override
public TreeVisitor<?, ExecutionContext> getVisitor() {
return new JavaVisitor<ExecutionContext>() {
return Repeat.repeatUntilStable(new JavaVisitor<ExecutionContext>() {
@Override
public J visitNewClass(J.NewClass newClass, ExecutionContext ctx) {
J.NewClass n = (J.NewClass) super.visitNewClass(newClass, ctx);
Expand Down Expand Up @@ -239,9 +239,7 @@ private String valueOfType(@Nullable JavaType type) {

return "null";
}
}

;
});
}

private static boolean usesThis(Cursor cursor) {
Expand Down

0 comments on commit 3a6dff6

Please sign in to comment.