diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-24 12:24:57 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-24 12:24:57 +0000 |
commit | d3707d42f0904ac1dff23fe2730f8eb709cacbc9 (patch) | |
tree | fc96fdc5cce66545fd0d2ee257d14f79d58486cd /plugins | |
parent | d1f184b66a862f72a516d5f62cd15b8346a51f39 (diff) | |
download | sonarqube-d3707d42f0904ac1dff23fe2730f8eb709cacbc9.tar.gz sonarqube-d3707d42f0904ac1dff23fe2730f8eb709cacbc9.zip |
SONAR-1812 The declaration @BelongsTo(classes=GeneratesViolations.class) does not work
Diffstat (limited to 'plugins')
5 files changed, 4 insertions, 9 deletions
diff --git a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleSensor.java b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleSensor.java index 64b65cbb8f5..7c207ad9edd 100644 --- a/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleSensor.java +++ b/plugins/sonar-checkstyle-plugin/src/main/java/org/sonar/plugins/checkstyle/CheckstyleSensor.java @@ -19,13 +19,12 @@ */ package org.sonar.plugins.checkstyle; -import org.sonar.api.batch.GeneratesViolations; import org.sonar.api.batch.Sensor; import org.sonar.api.batch.SensorContext; import org.sonar.api.profiles.RulesProfile; import org.sonar.api.resources.Project; -public class CheckstyleSensor implements Sensor, GeneratesViolations { +public class CheckstyleSensor implements Sensor { private RulesProfile profile; private CheckstyleExecutor executor; diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java index 85febaa6e96..d808990f575 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/sensors/ViolationsDecorator.java @@ -32,7 +32,7 @@ import org.sonar.api.rules.Violation; import java.util.*; -@DependsUpon(classes = GeneratesViolations.class) +@DependsUpon(value = DecoratorBarriers.END_OF_VIOLATIONS_GENERATION) public class ViolationsDecorator implements Decorator { // temporary data for current resource diff --git a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java index 421172e9a70..eb93d2fc218 100644 --- a/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java +++ b/plugins/sonar-findbugs-plugin/src/main/java/org/sonar/plugins/findbugs/FindbugsSensor.java @@ -26,7 +26,6 @@ import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.api.CoreProperties; -import org.sonar.api.batch.GeneratesViolations; import org.sonar.api.batch.Sensor; import org.sonar.api.batch.SensorContext; import org.sonar.api.batch.maven.DependsUponMavenPlugin; @@ -38,7 +37,7 @@ import org.sonar.api.rules.Rule; import org.sonar.api.rules.RuleFinder; import org.sonar.api.rules.Violation; -public class FindbugsSensor implements Sensor, DependsUponMavenPlugin, GeneratesViolations { +public class FindbugsSensor implements Sensor, DependsUponMavenPlugin { private RulesProfile profile; private RuleFinder ruleFinder; diff --git a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java index aa499bcffd0..a637d82f8fa 100644 --- a/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java +++ b/plugins/sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdSensor.java @@ -21,7 +21,6 @@ package org.sonar.plugins.pmd; import org.sonar.api.CoreProperties; import org.sonar.api.batch.AbstractViolationsStaxParser; -import org.sonar.api.batch.GeneratesViolations; import org.sonar.api.batch.Sensor; import org.sonar.api.batch.SensorContext; import org.sonar.api.profiles.RulesProfile; @@ -31,7 +30,7 @@ import org.sonar.api.utils.XmlParserException; import java.io.File; -public class PmdSensor implements Sensor, GeneratesViolations { +public class PmdSensor implements Sensor { private RulesProfile profile; private RulesManager rulesManager; diff --git a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/SquidSensor.java b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/SquidSensor.java index cc8ab1161b2..eade90a88f9 100644 --- a/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/SquidSensor.java +++ b/plugins/sonar-squid-java-plugin/src/main/java/org/sonar/plugins/squid/SquidSensor.java @@ -46,8 +46,6 @@ import org.sonar.api.resources.Project; import org.sonar.api.utils.SonarException; import org.sonar.java.bytecode.check.BytecodeChecks; -/* The phase can be removed as soon as all needed sensors implements GeneratesViolations */ - @Phase(name = Phase.Name.PRE) /* TODO is the flag still used ? */ @DependedUpon(value = Sensor.FLAG_SQUID_ANALYSIS, classes = NoSonarFilter.class) |