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

13 lines
337 B
Java

// "Replace nested function call with andThen call" "true"
import java.util.function.UnaryOperator;
public class Main {
private void testFn(boolean b) {
String foo = "xyz";
Integer f = Integer.parseInt(
(b ? (UnaryOperator<String>) String::trim : (UnaryOperator<String>) s -> s.substring(1)).apply(fo<caret>o));
}
}