From 0218d8ad0f63f4fddf796b4859f5cae4bcc11467 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Fri, 11 Mar 2011 16:03:19 +0100 Subject: [PATCH] declare time machine barriers to NewCoverage decorator --- .../plugins/core/timemachine/NewCoverageAggregator.java | 2 ++ .../plugins/core/timemachine/NewCoverageFileAnalyzer.java | 6 ++---- 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 structs; -- 2.39.5