mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 16:39:37 +07:00
14 lines
342 B
Java
14 lines
342 B
Java
// "Replace method call on lambda with lambda body" "false"
|
|
|
|
import java.util.function.Predicate;
|
|
|
|
public class Test {
|
|
public static void main(String[] args) {
|
|
((Predicate<String>)((x) -> {
|
|
if (x.length() > 0) {
|
|
return x.startsWith("a");
|
|
}
|
|
throw new IllegalArgumentException();
|
|
})).<caret>test("ab");
|
|
}
|
|
} |