Debian Codegraph @

checker/tests/nullness/generics/SourceVsJdk.java

raw
1 // In source code, whether an upper bound is explicit affects what type
2 // qualifier is imputed for that upper bound.
3 // The JDK should be treated consistently with source code.
4
5 // @skip-test Commented out to avoid breaking the build
6
7 import java.util.Collections;
8 import java.util.Map;
9
10 public class SourceVsJdk<K, V> {
11 public Map<K, V> getMap() {
12 return Collections.<K, V>emptyMap();
13 }
14 }