// Test case for Issue 979: // https://github.com/typetools/checker-framework/issues/979 import java.util.List; @SuppressWarnings("nullness") // don't bother with implementations class OneOf { static List alist; static V oneof(V v1, V v2) { return v1; } static List empty() { return null; } } class OneOfUse { List foo() { return OneOf.oneof(OneOf.alist, OneOf.empty()); } }