From f76cb79c52aefaa8161d5d97b64ee971b055afb9 Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 9 Dec 2015 19:52:33 +0300 Subject: [PATCH] guava type migration: wrong test data fixed --- .../inspections/guava/convertImmutableCollections_after.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/typeMigration/testData/inspections/guava/convertImmutableCollections_after.java b/java/typeMigration/testData/inspections/guava/convertImmutableCollections_after.java index 88582d93a397..d6e65b28e74e 100644 --- a/java/typeMigration/testData/inspections/guava/convertImmutableCollections_after.java +++ b/java/typeMigration/testData/inspections/guava/convertImmutableCollections_after.java @@ -7,7 +7,7 @@ class CollectList { public List toList(Stream p) { return p.collect(Collectors.toList()); } public List toSortedList(Stream p, Comparator c) { return p.sorted(c).collect(Collectors.toList()); } public Set toSet(Stream p) { return p.collect(Collectors.toSet()); } - public Set toSortedSet(Stream p, Comparator c) { return p.collect(Collectors.toCollection(TreeSet::new)); } + public Set toSortedSet(Stream p, Comparator c) { return p.collect(Collectors.toCollection(() -> new TreeSet<>(c))); } public Map toMap(Stream p) { return p.collect(Collectors.toMap(Function.identity(), input -> input)); } void m(Stream fluentIterable) {