diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-06 10:15:23 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-05-06 10:21:40 +0200 |
commit | 203846882d5a4569776be905024097c67c5e6a9a (patch) | |
tree | 3c6b5236fe0425b52dc7ae17fffd18454e539375 /sonar-batch/src | |
parent | 43fc31f75a2de06b23faefb0d2bbf1dd97290232 (diff) | |
download | sonarqube-203846882d5a4569776be905024097c67c5e6a9a.tar.gz sonarqube-203846882d5a4569776be905024097c67c5e6a9a.zip |
Update message
Diffstat (limited to 'sonar-batch/src')
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java index 1625b7c0bce..ad5516879f1 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java +++ b/sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java @@ -31,20 +31,8 @@ import org.sonar.api.batch.SonarIndex; import org.sonar.api.batch.bootstrap.ProjectDefinition; import org.sonar.api.database.model.Snapshot; import org.sonar.api.design.Dependency; -import org.sonar.api.measures.CoreMetrics; -import org.sonar.api.measures.Measure; -import org.sonar.api.measures.MeasuresFilter; -import org.sonar.api.measures.MeasuresFilters; -import org.sonar.api.measures.Metric; -import org.sonar.api.measures.MetricFinder; -import org.sonar.api.resources.Directory; -import org.sonar.api.resources.File; -import org.sonar.api.resources.Project; -import org.sonar.api.resources.ProjectLink; -import org.sonar.api.resources.Qualifiers; -import org.sonar.api.resources.Resource; -import org.sonar.api.resources.ResourceUtils; -import org.sonar.api.resources.Scopes; +import org.sonar.api.measures.*; +import org.sonar.api.resources.*; import org.sonar.api.rules.Rule; import org.sonar.api.rules.Violation; import org.sonar.api.scan.filesystem.PathResolver; @@ -61,15 +49,7 @@ import org.sonar.core.component.ScanGraph; import javax.annotation.CheckForNull; import javax.annotation.Nullable; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; -import java.util.Date; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; -import java.util.Map; -import java.util.Set; +import java.util.*; public class DefaultIndex extends SonarIndex { @@ -215,7 +195,7 @@ public class DefaultIndex extends SonarIndex { if (measureCache.contains(resource, measure) // Hack for SONAR-5212 && !measure.getMetric().equals(CoreMetrics.TESTS)) { - throw new SonarException("Can not add twice the same measure on " + resource + ": " + measure); + throw new SonarException("Can not add the same measure twice on " + resource + ": " + measure); } measureCache.put(resource, measure); } |