aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-19 12:50:35 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-07-21 17:03:57 +0200
commitd7313f8d7dde5f120229e6df255cedaee8bf4e4d (patch)
treef56c18f85486079cd26dbfa91e6f8a8ddff4b7f5 /sonar-scanner-engine
parentae9a6a7ff5a78d8aee765728d8c73f840e7905ff (diff)
downloadsonarqube-d7313f8d7dde5f120229e6df255cedaee8bf4e4d.tar.gz
sonarqube-d7313f8d7dde5f120229e6df255cedaee8bf4e4d.zip
merge GuavaCollectors into Collectors and rename methods
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/RuleFinderCompatibility.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/RuleFinderCompatibility.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/RuleFinderCompatibility.java
index cee346fc94c..4d16945fc97 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/RuleFinderCompatibility.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/rule/RuleFinderCompatibility.java
@@ -31,6 +31,7 @@ import org.sonar.api.rule.RuleKey;
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RuleFinder;
import org.sonar.api.rules.RuleQuery;
+import org.sonar.core.util.stream.Collectors;
import static org.sonar.core.util.stream.Collectors.toList;
@@ -88,7 +89,7 @@ public class RuleFinderCompatibility implements RuleFinder {
private Collection<Rule> byRepository(RuleQuery query) {
return rules.findByRepository(query.getRepositoryKey()).stream()
.map(RuleFinderCompatibility::toRule)
- .collect(toList());
+ .collect(Collectors.toArrayList());
}
private Collection<Rule> byKey(RuleQuery query) {
@@ -99,7 +100,7 @@ public class RuleFinderCompatibility implements RuleFinder {
private Collection<Rule> byInternalKey(RuleQuery query) {
return rules.findByInternalKey(query.getRepositoryKey(), query.getConfigKey()).stream()
.map(RuleFinderCompatibility::toRule)
- .collect(toList());
+ .collect(Collectors.toArrayList());
}
@CheckForNull