From: Evgeny Mandrikov Date: Fri, 16 Mar 2012 13:09:32 +0000 (+0400) Subject: Add some Javadocs X-Git-Tag: 3.0~171 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a9f1cd33f9c640f78ea7aa464a7e3b7cab30dbfd;p=sonarqube.git Add some Javadocs --- diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/batch/Decorator.java b/sonar-plugin-api/src/main/java/org/sonar/api/batch/Decorator.java index 68ff6fb30ac..f0dc71cec27 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/batch/Decorator.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/batch/Decorator.java @@ -27,6 +27,9 @@ import org.sonar.api.resources.Resource; */ public interface Decorator extends BatchExtension, CheckProject { + /** + * @param resource resource that is currently decorated, equivalent of context.getResource() + */ void decorate(Resource resource, DecoratorContext context); } 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 4d8c0335041..44cf1a1d901 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 @@ -100,6 +100,7 @@ public abstract class SonarIndex implements DirectedGraphAccessornull if not available * @since 2.9 */ public abstract String getSource(Resource resource); @@ -124,7 +125,7 @@ public abstract class SonarIndex implements DirectedGraphAccessorViolationQuery.create().forResource(resource).ignoreSwitchedOff(true) * as a parameter. - * + * * @since 2.7 * @return the list of violations */