mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 23:39:39 +07:00
redundant cast: special processing for functional expressions as enum args (IDEA-154354)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user