Debian Codegraph @

checker/tests/nullness/java8inference/InferenceSimpler.java

raw
1 // Test case for Issue 979:
2 // https://github.com/typetools/checker-framework/issues/979
3
4 import java.util.List;
5
6 @SuppressWarnings("nullness") // don't bother with implementations
7 class ISOuter {
8 static <V> List<V> wrap(V value) {
9 return null;
10 }
11
12 static <T> List<T> empty() {
13 return null;
14 }
15 }
16
17 class InferenceSimpler {
18 List<List<String>> foo() {
19 return ISOuter.wrap(ISOuter.empty());
20 }
21 }