mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
hardcode Map#get as having unknown nullity (IDEA-176626)
until we have a better solution
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import foo.*;
|
||||
import java.util.*;
|
||||
|
||||
class Test {
|
||||
|
||||
public void main(Map<@NotNull String, @NotNull Integer> map, HashMap<@NotNull String, @NotNull Integer> hashMap) {
|
||||
Integer value = map.get("y");
|
||||
if (value == null) {
|
||||
System.out.println("it's not contained");
|
||||
}
|
||||
|
||||
value = hashMap.get("y");
|
||||
if (value == null) {
|
||||
System.out.println("it's not contained");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user