mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
guava type migration: wrong test data fixed
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user