mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
IDEA-42948 Idea fails to recognize "non-nullness" after unchecked cast
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class BrokenAlignment {
|
||||
void t() {
|
||||
@NotNull Collection list = new ArrayList();
|
||||
List<String> strings = (List<String>) list;
|
||||
if (<warning descr="Condition 'strings != null' is always 'true'">strings != null</warning>) {
|
||||
int foo = 42;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user