mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-20 20:20:56 +07:00
13 lines
345 B
Java
13 lines
345 B
Java
// "Replace nested function call with andThen call" "true-preview"
|
|
|
|
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));
|
|
}
|
|
}
|