Closed pway99 closed 1 year ago
This issue is most likely caused by a large number of type related issues associated with a rather large stub.
The snippet below from the Parameters
file referenced in this issue works fine in the ReplaceLambdaWithMethodReferenceTest
.
import java.util.function.Supplier;
class A<S> {
class Lazy<T> implements Supplier<T> { }
Lazy binder;
void m() {
this.binder = Lazy.of(() -> (S) this);
}
}
Problem
Issue discovered with
src/main/java/org/springframework/data/repository/query/Parameters.java
Expected behavior
Example diff
Recipes in example diff:
org.openrewrite.java.cleanup.ReplaceLambdaWithMethodReference
References:
undefined