Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/quickFix/composeFunctionChain/beforeInstanceCall.java
Tagir Valeev 8560c6a5d1 [java-inspections] More preview tests
GitOrigin-RevId: 571a82f66623887c1b5008963df842b2597c58c9
2022-07-27 10:00:31 +00:00

18 lines
573 B
Java

// "Replace nested function call with andThen call" "true-preview"
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";
boolean b = Collections.singleton(/* "xyz" here */ "xyz").contains(/*check*/sel<caret>ector.apply(/* foo here */ foo));
}
}