Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/createMethodFromMethodRef/afterPoly2.java
Tagir Valeev ffca32cd79 [java-intention] Create method reference from usage: improve return type guess (IDEA-314907)
GitOrigin-RevId: 2e4e2eb156dcf6e0a739d9efd8b75b398d14ff2f
2023-03-20 17:26:05 +00:00

15 lines
334 B
Java

// "Create method 'hello'" "true"
import java.util.function.BiFunction;
class X {
void x() {
BiFunction<String, Integer, Double> fn = (s, i) -> ((double)s.length())/i;
BiFunction<String, Integer, Character> fn2 = fn.andThen(X::hello);
}
private static Character hello(Double aDouble) {
return null;
}
}