diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-29 18:13:30 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2013-05-29 18:14:51 +0200 |
commit | ab1fbbbb74b0a8544cf2d837cff59116038a7dd9 (patch) | |
tree | fe0f13666544a9a57aaddb21e60afa0d52fdabc8 /sonar-plugin-api/src | |
parent | 7cd778260833ff4ebeee9fbbdf84cc2fc44cf500 (diff) | |
download | sonarqube-ab1fbbbb74b0a8544cf2d837cff59116038a7dd9.tar.gz sonarqube-ab1fbbbb74b0a8544cf2d837cff59116038a7dd9.zip |
SONAR-4313 forbid violations on program units and blocks
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java index 283afb9dee7..bd2e50c564b 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java @@ -129,7 +129,9 @@ public abstract class SonarIndex implements DirectedGraphAccessor<Resource, Depe * @param violationQuery * the request parameters specified as a {@link ViolationQuery} * @return the list of violations that match those parameters + * @deprecated in 3.6 */ + @Deprecated public abstract List<Violation> getViolations(ViolationQuery violationQuery); /** @@ -139,16 +141,24 @@ public abstract class SonarIndex implements DirectedGraphAccessor<Resource, Depe * * @since 2.7 * @return the list of violations + * @deprecated in 3.6 */ + @Deprecated public final List<Violation> getViolations(Resource resource) { return getViolations(ViolationQuery.create().forResource(resource)); } /** * @since 2.5 + * @deprecated in 3.6 */ + @Deprecated public abstract void addViolation(Violation violation, boolean force); + /** + * @deprecated in 3.6 + */ + @Deprecated public final void addViolation(Violation violation) { addViolation(violation, false); } |