diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-27 11:49:37 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-09-27 11:49:37 +0000 |
commit | 929f517b8c3b8430d68802b0ff2bd32e2d59f3df (patch) | |
tree | a2e23743d0c587727d91dbd626c2df0922326b1d /sonar-plugin-api | |
parent | 3727f84e84453381a51ae40a6e804520e6d0d31a (diff) | |
download | sonarqube-929f517b8c3b8430d68802b0ff2bd32e2d59f3df.tar.gz sonarqube-929f517b8c3b8430d68802b0ff2bd32e2d59f3df.zip |
fix backward compatibility of the interface GeneratesViolations.
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/DecoratorBarriers.java | 3 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/ViolationFilter.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/DecoratorBarriers.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/DecoratorBarriers.java index 7003367da48..ac2d403f481 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/DecoratorBarriers.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/DecoratorBarriers.java @@ -25,6 +25,9 @@ package org.sonar.api.batch; */ public interface DecoratorBarriers { + + String START_VIOLATIONS_GENERATION = "START_VIOLATIONS_GENERATION"; + /** * This barrier is used by a decorator in order to : * <ul> diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ViolationFilter.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ViolationFilter.java index 78d001a1a47..46995265c46 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ViolationFilter.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ViolationFilter.java @@ -20,12 +20,15 @@ package org.sonar.api.rules; import org.sonar.api.BatchExtension; +import org.sonar.api.batch.DecoratorBarriers; +import org.sonar.api.batch.DependedUpon; /** * Filter violations to save. For example, ignore a violation if it occurs on a line of code commented with //NOSONAR * * @since 1.12 */ +@DependedUpon(value = DecoratorBarriers.START_VIOLATIONS_GENERATION) public interface ViolationFilter extends BatchExtension { /** |