mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
14 lines
417 B
Java
14 lines
417 B
Java
import java.io.*;
|
|
interface Predicate<T> {
|
|
boolean test(String s);
|
|
}
|
|
class Test {
|
|
private static boolean test(String s) {
|
|
return false;
|
|
}
|
|
|
|
{
|
|
Predicate<String> mh1 = (Predicate<String> & Serializable)Test::test;
|
|
Predicate<String> mh0 = (<warning descr="Casting 'Test::test' to 'Predicate<String> & Predicate<String>' is redundant">Predicate<String> & Predicate<String></warning>)Test::test;
|
|
}
|
|
} |