mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
hardcode Map.remove as having unknown nullity (IDEA-CR-28277, IDEA-183875)
This commit is contained in:
@@ -14,4 +14,16 @@ class Test {
|
||||
System.out.println("it's not contained");
|
||||
}
|
||||
}
|
||||
|
||||
public void main2(Map<@NotNull String, @NotNull Integer> map, HashMap<@NotNull String, @NotNull Integer> hashMap) {
|
||||
Integer value = map.remove("y");
|
||||
if (value == null) {
|
||||
System.out.println("it's not contained");
|
||||
}
|
||||
|
||||
value = hashMap.remove("y");
|
||||
if (value == null) {
|
||||
System.out.println("it's not contained");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user