mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
java redundant cast: no semantic serialization when expected type is also serializable (IDEA-249705)
GitOrigin-RevId: 7ffe4dc7ef44099630afe65d7fb545337d982f7b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
cdbae12245
commit
0faebe5de7
+8
@@ -8,7 +8,15 @@ class Test {
|
||||
r = (Runnable & Serializable)() -> {};
|
||||
r = (Runnable & I)() -> {};
|
||||
System.out.println(r);
|
||||
|
||||
|
||||
J j = (<warning descr="Casting '() -> {...}' to 'J' is redundant">J</warning>) () -> {};
|
||||
J j1 = (J1) () -> {};
|
||||
}
|
||||
|
||||
interface I {}
|
||||
interface J extends Serializable {
|
||||
void m();
|
||||
}
|
||||
interface J1 extends J {}
|
||||
}
|
||||
Reference in New Issue
Block a user