mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-02 22:51:01 +07:00
12 lines
258 B
Java
12 lines
258 B
Java
import java.util.function.Supplier;
|
|
|
|
enum E {
|
|
A( (<warning descr="Casting 'E::f' to 'Supplier<Object>' is redundant">Supplier<Object></warning>)E::f),
|
|
B( (Supplier<String>)E::f),
|
|
;
|
|
<T> E(Supplier<T> s){}
|
|
|
|
static <K> K f() {
|
|
return null;
|
|
}
|
|
} |