Files
openide/java/java-tests/testData/inspection/dataFlow/fixture/MapGetWithNotNullKeys.java
T
2017-10-12 20:02:39 +02:00

17 lines
394 B
Java

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");
}
}
}