mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-19 18:50:59 +07:00
12 lines
481 B
Java
12 lines
481 B
Java
|
|
import java.util.function.Predicate;
|
|
|
|
class Foo<T> {
|
|
public Foo(Predicate<T> p) {
|
|
}
|
|
|
|
void m(Predicate<String> p){
|
|
new Foo<>(p == null ? null : acc -> p.test<error descr="'test(java.lang.String)' in 'java.util.function.Predicate' cannot be applied to '(java.lang.Object)'">(acc)</error>);
|
|
new Foo<>(acc -> p.test<error descr="'test(java.lang.String)' in 'java.util.function.Predicate' cannot be applied to '(java.lang.Object)'">(acc)</error>);
|
|
}
|
|
} |