guava type migration: wrong test data fixed

This commit is contained in:
Dmitry Batkovich
2015-12-09 19:52:33 +03:00
parent aeb1463195
commit f76cb79c52
@@ -7,7 +7,7 @@ class CollectList {
public <T> List<T> toList(Stream<T> p) { return p.collect(Collectors.toList()); }
public <T> List<T> toSortedList(Stream<T> p, Comparator<T> c) { return p.sorted(c).collect(Collectors.toList()); }
public <T> Set<T> toSet(Stream<T> p) { return p.collect(Collectors.toSet()); }
public <T> Set<T> toSortedSet(Stream<T> p, Comparator<T> c) { return p.collect(Collectors.toCollection(TreeSet::new)); }
public <T> Set<T> toSortedSet(Stream<T> p, Comparator<T> c) { return p.collect(Collectors.toCollection(() -> new TreeSet<>(c))); }
public <T> Map<T, T> toMap(Stream<T> p) { return p.collect(Collectors.toMap(Function.identity(), input -> input)); }
void m(Stream<String> fluentIterable) {