summaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-12-09 14:37:03 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-12-09 17:50:10 +0400
commit707abff4b46a4240481a47d9b3437bf6ce5bc82b (patch)
tree9c0f6d3fbec9b9ca35bb3efc620a2de752ba7b3f /sonar-plugin-api
parent956075492696483838e1309c37f14e2bee217d57 (diff)
downloadsonarqube-707abff4b46a4240481a47d9b3437bf6ce5bc82b.tar.gz
sonarqube-707abff4b46a4240481a47d9b3437bf6ce5bc82b.zip
Add DecoratorBarriers START_VIOLATION_PERSISTENCE and END_OF_VIOLATION_PERSISTENCE
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/batch/DecoratorBarriers.java36
1 files changed, 23 insertions, 13 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 526c87c6c9e..9d5b632cb56 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
@@ -23,8 +23,8 @@ package org.sonar.api.batch;
* Barriers are used to define the order of execution of Decorators. Decorators must be annotated with the following :
*
* <ul>
- * <li{@code @DependsUpon(BARRIER)} in order to be executed after BARRIER
- * <li{@code @DependedUpon(BARRIER)} in order to be executed before BARRIER
+ * <li>{@code @DependsUpon(BARRIER)} in order to be executed after BARRIER</li>
+ * <li>{@code @DependedUpon(BARRIER)} in order to be executed before BARRIER</li>
* </ul>
*
* @since 2.3
@@ -53,20 +53,30 @@ public interface DecoratorBarriers {
*/
String START_VIOLATION_TRACKING = "START_VIOLATION_TRACKING";
- /*
- * This barrier is after {@code END_OF_VIOLATIONS_GENERATION} and {@code START_VIOLATION_TRACKING}.
- * Decorators executed after this barrier ({@code @DependsUpon(value=DecoratorBarriers.END_OF_VIOLATION_TRACKING})
- * can benefit from all the features of violation tracking :
- * <ul>
- * <li>{@code Violation#getCreatedAt()}</li>
- * <li>{@code Violation#isSwitchedOff()}, usually to know if a violation has been flagged as false-positives in UI</li>
- * </ul>
- *
- * @since 2.8
- */
+ /**
+ * This barrier is after {@code END_OF_VIOLATIONS_GENERATION} and {@code START_VIOLATION_TRACKING}.
+ * Decorators executed after this barrier ({@code @DependsUpon(value=DecoratorBarriers.END_OF_VIOLATION_TRACKING})
+ * can benefit from all the features of violation tracking :
+ * <ul>
+ * <li>{@code Violation#getCreatedAt()}</li>
+ * <li>{@code Violation#isSwitchedOff()}, usually to know if a violation has been flagged as false-positives in UI</li>
+ * </ul>
+ *
+ * @since 2.8
+ */
String END_OF_VIOLATION_TRACKING = "END_OF_VIOLATION_TRACKING";
/**
+ * @since 2.13
+ */
+ String START_VIOLATION_PERSISTENCE = "START_VIOLATION_PERSISTENCE";
+
+ /**
+ * @since 2.13
+ */
+ String END_OF_VIOLATION_PERSISTENCE = "END_OF_VIOLATION_PERSISTENCE";
+
+ /**
* Any kinds of time machine data are calculated before this barrier. Decorators executed after this barrier can use
* Measure#getVariationValue() and Measure#getTendency() methods.
*