mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
unchecked warnings: check poly conditional branches in context of target type (IDEA-199615)
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
class MyTest {
|
||||
interface I<T> {
|
||||
void m();
|
||||
}
|
||||
|
||||
private final I<String> i;
|
||||
|
||||
public MyTest(I i) {
|
||||
this.i = i == null ? () -> {} : <warning descr="Unchecked assignment: 'MyTest.I' to 'MyTest.I<java.lang.String>'">i</warning>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user