mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
java redundant cast: allow warnings in poly conditional when target type remains the same
GitOrigin-RevId: f953fc42882a1eaad0b0a8c65d1e94236f0ec99e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
b4993721fb
commit
349c96eaee
+1
@@ -5,6 +5,7 @@ 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> {}
|
||||
|
||||
Reference in New Issue
Block a user