summaryrefslogtreecommitdiffstats
path: root/sonar-batch
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-04-24 17:09:38 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-04-24 17:22:05 +0200
commit0deff2ed59b0e254cb0a5be460d0faab0aa97b23 (patch)
tree3c1fd46748063a068a99e9844679795b08eff087 /sonar-batch
parent631797e48ccb77632bc5e6f4f2256561b1aa59f9 (diff)
downloadsonarqube-0deff2ed59b0e254cb0a5be460d0faab0aa97b23.tar.gz
sonarqube-0deff2ed59b0e254cb0a5be460d0faab0aa97b23.zip
SONAR-5189 Fix VariationDecorator to allow measure updates
Diffstat (limited to 'sonar-batch')
-rw-r--r--sonar-batch/src/main/java/org/sonar/batch/index/DefaultIndex.java4
1 files changed, 3 insertions, 1 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 6fc4c72eeb6..f95a5311c4e 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
@@ -53,6 +53,7 @@ import org.sonar.api.violations.ViolationQuery;
import org.sonar.batch.ProjectTree;
import org.sonar.batch.issue.DeprecatedViolations;
import org.sonar.batch.issue.ModuleIssues;
+import org.sonar.batch.qualitygate.QualityGateVerifier;
import org.sonar.batch.scan.measure.MeasureCache;
import org.sonar.core.component.ComponentKeys;
import org.sonar.core.component.ScanGraph;
@@ -209,7 +210,8 @@ public class DefaultIndex extends SonarIndex {
}
/**
- * Used by some core features like TendencyDecorator, QualityGateVerifier that need to update some existing measures
+ * Used by some core features like TendencyDecorator, {@link QualityGateVerifier}, VariationDecorator
+ * that need to update some existing measures
*/
public void updateMeasure(Resource resource, Measure measure) {
if (!measureCache.contains(resource, measure)) {