aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-scanner-engine
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-04-03 15:13:02 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2017-04-03 15:13:02 +0200
commit68af82a779fc632759c607d31ed6258a015a35c4 (patch)
tree96716855bc9c3f0140e5f610361be342be4cb307 /sonar-scanner-engine
parent1856d055923715759ed71a42ab1ff0deabf809f9 (diff)
downloadsonarqube-68af82a779fc632759c607d31ed6258a015a35c4.tar.gz
sonarqube-68af82a779fc632759c607d31ed6258a015a35c4.zip
rename Collectors to MoreCollectors
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r--sonar-scanner-engine/src/main/java/org/sonar/scanner/source/ZeroCoverageSensor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/source/ZeroCoverageSensor.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/source/ZeroCoverageSensor.java
index da5482356f4..446fbd4089b 100644
--- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/source/ZeroCoverageSensor.java
+++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/source/ZeroCoverageSensor.java
@@ -37,7 +37,7 @@ import org.sonar.api.batch.sensor.coverage.NewCoverage;
import org.sonar.api.batch.sensor.measure.internal.DefaultMeasure;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.utils.KeyValueFormat;
-import org.sonar.core.util.stream.Collectors;
+import org.sonar.core.util.stream.MoreCollectors;
import org.sonar.scanner.scan.measure.MeasureCache;
import org.sonar.scanner.sensor.coverage.CoverageExclusions;
@@ -104,9 +104,9 @@ public final class ZeroCoverageSensor implements Sensor {
private boolean isCoverageMeasuresAlreadyDefined(InputFile f) {
Set<String> metricKeys = StreamSupport.stream(measureCache.byComponentKey(f.key()).spliterator(), false)
- .map(new MeasureToMetricKey()).collect(Collectors.toSet());
+ .map(new MeasureToMetricKey()).collect(MoreCollectors.toSet());
Function<Metric, String> metricToKey = new MetricToKey();
- Set<String> allCoverageMetricKeys = CoverageType.UNIT.allMetrics().stream().map(metricToKey).collect(Collectors.toSet());
+ Set<String> allCoverageMetricKeys = CoverageType.UNIT.allMetrics().stream().map(metricToKey).collect(MoreCollectors.toSet());
return !Sets.intersection(metricKeys, allCoverageMetricKeys).isEmpty();
}