mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-24 16:48:29 +07:00
349c96eaee
GitOrigin-RevId: f953fc42882a1eaad0b0a8c65d1e94236f0ec99e
12 lines
483 B
Java
12 lines
483 B
Java
import java.util.function.Supplier;
|
|
|
|
class Test {
|
|
{
|
|
Object o = true ? ((Supplier<String>) () -> "") : null;
|
|
Supplier<String> s1 = true ? ((<warning descr="Casting '() -> {...}' to 'Supplier<String>' is redundant">Supplier<String></warning>) () -> "") : null;
|
|
Supplier<String> s2 = true ? ((A) () -> "") : null;
|
|
A s3 = true ? ((<warning descr="Casting '() -> {...}' to 'A' is redundant">A</warning>) () -> "") : null;
|
|
}
|
|
|
|
interface A extends Supplier<String> {}
|
|
} |