diff options
author | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-03-11 22:40:16 +0300 |
---|---|---|
committer | Evgeny Mandrikov <mandrikov@gmail.com> | 2011-03-12 00:42:42 +0300 |
commit | a0c39b6e623876693382842b1d9ec7534f453059 (patch) | |
tree | 41ae9d509a1be46b8f3630161315e335410373a0 /sonar-plugin-api | |
parent | cb76a1a3cad2210e5cb9fa48c034d388d8b1b45b (diff) | |
download | sonarqube-a0c39b6e623876693382842b1d9ec7534f453059.tar.gz sonarqube-a0c39b6e623876693382842b1d9ec7534f453059.zip |
Reduce dependencies on database
* Remove unused method DefaultDecoratorContext#getSession() and as a result dependency on DatabaseSession
* Replace DefaultIndex by SonarIndex in DefaultDecoratorContext and in DefaultSensorContext
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/batch/SonarIndex.java | 5 |
1 files changed, 5 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 b7974c57a2c..02bb82d1153 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 @@ -117,6 +117,11 @@ public abstract class SonarIndex implements DirectedGraphAccessor<Resource, Depe public abstract <M> M getMeasures(Resource resource, MeasuresFilter<M> filter); /** + * @since 2.7 + */ + public abstract List<Violation> getViolations(Resource resource); + + /** * @since 2.5 */ public abstract void addViolation(Violation violation, boolean force); |