blob: 9f7707e09f17b20a7c075b2185966b5194a79890 [file] [log] [blame]
// Test case for Issue 438:
// https://github.com/typetools/checker-framework/issues/438
import java.util.HashSet;
import java.util.List;
public class Issue438 {
boolean foo(List<String> list) {
if (list.isEmpty()) {
return new HashSet<>(list).isEmpty();
} else {
return new HashSet<>(list).contains("test");
}
}
int bar(List<String> list) {
return new HashSet<>(list).size();
}
}