// Test case for Issue 1331. // https://github.com/typetools/checker-framework/issues/1331 import java.util.List; import java.util.stream.Collectors; @SuppressWarnings("") // check for crashes class Issue1331 { List ll; long result = getOnlyElement(ll.stream().collect(Collectors.toSet())); static T getOnlyElement(Iterable iterable) { return null; } }