Debian Codegraph @

framework/tests/all-systems/Issue887.java

raw
1 // Test case for Issue 887
2 // https://github.com/typetools/checker-framework/issues/887
3 // Additional test case in checker/tests/nullness/Issue887.java
4
5 import java.util.List;
6
7 public abstract class Issue887 {
8 @SuppressWarnings("nullness") // See checker/tests/nullness/Issue887.java
9 void test() {
10 method(foo(null).get(0));
11 }
12
13 void method(Number o) {}
14
15 abstract <T extends Number> List<? extends T> foo(T t);
16 }