Debian Codegraph @

framework/tests/all-systems/java8inference/Issue953.java

raw
1 // Test case that was submitted in Issue 953, but was combined with Issue 979
2 // https://github.com/typetools/checker-framework/issues/979
3
4 // @skip-test until the bug is fixed
5
6 import java.util.*;
7 import java.util.stream.Collectors;
8
9 public class Issue953 {
10 public static void test() {
11 List<String> initial = new ArrayList<>();
12 List<Integer> counts =
13 initial.stream().skip(1).map(l -> count("", l)).collect(Collectors.toList());
14 }
15
16 private static int count(String s, String l) {
17 return 0;
18 }
19 }