aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-03-11 16:03:19 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-03-11 16:03:30 +0100
commit0218d8ad0f63f4fddf796b4859f5cae4bcc11467 (patch)
tree62ae366c92addc781b12f33cb2516c7820a2dc62
parent7b333043e036f81970bd2a33589cab2eea2fb4e1 (diff)
downloadsonarqube-0218d8ad0f63f4fddf796b4859f5cae4bcc11467.tar.gz
sonarqube-0218d8ad0f63f4fddf796b4859f5cae4bcc11467.zip
declare time machine barriers to NewCoverage decorator
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageAggregator.java2
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzer.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageAggregator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageAggregator.java
index 0104f20faa5..15d0e7a1f68 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageAggregator.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageAggregator.java
@@ -21,6 +21,7 @@ package org.sonar.plugins.core.timemachine;
import org.apache.commons.lang.ArrayUtils;
import org.sonar.api.batch.Decorator;
+import org.sonar.api.batch.DecoratorBarriers;
import org.sonar.api.batch.DecoratorContext;
import org.sonar.api.batch.DependedUpon;
import org.sonar.api.measures.CoreMetrics;
@@ -34,6 +35,7 @@ import org.sonar.api.resources.Scopes;
import java.util.Arrays;
import java.util.List;
+@DependedUpon(DecoratorBarriers.END_OF_TIME_MACHINE)
public final class NewCoverageAggregator implements Decorator {
public boolean shouldExecuteOnProject(Project project) {
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzer.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzer.java
index 6b7018560b1..78a988d6d16 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzer.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/timemachine/NewCoverageFileAnalyzer.java
@@ -22,10 +22,7 @@ package org.sonar.plugins.core.timemachine;
import com.google.common.collect.Lists;
import com.google.common.collect.Maps;
import org.apache.commons.lang.ObjectUtils;
-import org.sonar.api.batch.Decorator;
-import org.sonar.api.batch.DecoratorContext;
-import org.sonar.api.batch.DependedUpon;
-import org.sonar.api.batch.DependsUpon;
+import org.sonar.api.batch.*;
import org.sonar.api.measures.CoreMetrics;
import org.sonar.api.measures.Measure;
import org.sonar.api.measures.Metric;
@@ -45,6 +42,7 @@ import java.util.Map;
/**
* @since 2.7
*/
+@DependedUpon(DecoratorBarriers.END_OF_TIME_MACHINE)
public final class NewCoverageFileAnalyzer implements Decorator {
private List<PeriodStruct> structs;