Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
traceyyoshima committed Nov 1, 2023
1 parent b8951dc commit 8b8a7eb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@
import org.openrewrite.kotlin.KotlinVisitor;

import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Set;

import static java.util.Collections.emptyList;


@Value
@EqualsAndHashCode(callSuper = true)
Expand Down Expand Up @@ -63,7 +64,7 @@ public TreeVisitor<?, ExecutionContext> getVisitor() {
public J visitLambda(J.Lambda lambda, ExecutionContext executionContext) {
lambda = (J.Lambda) super.visitLambda(lambda, executionContext);
if (isParameterExplicitIt(lambda)) {
lambda = lambda.withParameters(lambda.getParameters().withParameters(new ArrayList<>()));
lambda = lambda.withParameters(lambda.getParameters().withParameters(emptyList()));
}
return lambda;
}
Expand Down

0 comments on commit 8b8a7eb

Please sign in to comment.