diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2017-01-31 14:56:28 +0100 |
---|---|---|
committer | dbmeneses <duarte.meneses@sonarsource.com> | 2017-01-31 17:14:13 +0100 |
commit | f4e4e1f30da63c41701e237f92d55171c7d5b927 (patch) | |
tree | 16b1c2f08aff3354f4524e0a582633797f41b77a /sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure | |
parent | 664d1ea8246b368222ca545e8a26f0b8c7acfabd (diff) | |
download | sonarqube-f4e4e1f30da63c41701e237f92d55171c7d5b927.tar.gz sonarqube-f4e4e1f30da63c41701e237f92d55171c7d5b927.zip |
Reduce dependency on guava
Diffstat (limited to 'sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure/DeprecatedMetricFinder.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure/DeprecatedMetricFinder.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure/DeprecatedMetricFinder.java index ef64f649cf2..8507fbbfc69 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure/DeprecatedMetricFinder.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/scan/measure/DeprecatedMetricFinder.java @@ -19,9 +19,9 @@ */ package org.sonar.scanner.scan.measure; -import com.google.common.collect.Lists; -import com.google.common.collect.Maps; import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.LinkedList; import java.util.List; import java.util.Map; import org.sonar.api.measures.Metric; @@ -30,8 +30,8 @@ import org.sonar.scanner.repository.MetricsRepository; public final class DeprecatedMetricFinder implements MetricFinder { - private Map<String, Metric> metricsByKey = Maps.newLinkedHashMap(); - private Map<Integer, Metric> metricsById = Maps.newLinkedHashMap(); + private Map<String, Metric> metricsByKey = new LinkedHashMap<>(); + private Map<Integer, Metric> metricsById = new LinkedHashMap<>(); public DeprecatedMetricFinder(MetricsRepository metricsRepository) { for (Metric metric : metricsRepository.metrics()) { @@ -52,7 +52,7 @@ public final class DeprecatedMetricFinder implements MetricFinder { @Override public Collection<Metric> findAll(List<String> metricKeys) { - List<Metric> result = Lists.newLinkedList(); + List<Metric> result = new LinkedList<>(); for (String metricKey : metricKeys) { Metric metric = findByKey(metricKey); if (metric != null) { |