Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/composeFunctionChain/beforeBiFunction.java

18 lines
490 B
Java

// "Replace nested function call with andThen call" "true"
import java.util.Collections;
import java.util.function.BinaryOperator;
import java.util.function.Function;
import java.util.function.UnaryOperator;
public class Main {
private void testFn() {
Function<String, Integer> lookup = Integer::parseInt;
UnaryOperator<String> selector = String::trim;
BinaryOperator<Integer> min = Math::min;
String foo = "xyz";
int res = Math.abs(min.a<caret>pply(-1,-2));
}
}