blob: a97441a49751f16e40a4c61371abca2bd4fc9ffa [file] [log] [blame]
import org.checkerframework.checker.nullness.qual.*;
public class BoxingGenerics {
static class X<T> {
public static <T> X<T> foo(T x) {
return new X<>();
}
public void bar(X<T> x) {}
}
public void getText() {
X<Integer> var = new X<>();
X.foo(Integer.valueOf(5)).bar(var);
X.foo(5).bar(var);
}
}