aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@gmail.com>2013-05-31 19:05:13 +0200
committerJulien Lancelot <julien.lancelot@gmail.com>2013-06-03 11:12:48 +0200
commit6ce3ec7f1b3f0b3c1baf823037873bdd672af4e5 (patch)
treef42542ea82151fcb39fd6f7fe956f81a41364b6e /sonar-plugin-api/src
parent53f72765ff3868ef94e5b6f319bdb4d7b009dfee (diff)
downloadsonarqube-6ce3ec7f1b3f0b3c1baf823037873bdd672af4e5.tar.gz
sonarqube-6ce3ec7f1b3f0b3c1baf823037873bdd672af4e5.zip
SONAR-4315 Improve Actions API but using directly Action without using Actions
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Action.java3
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Actions.java1
2 files changed, 3 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Action.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Action.java
index 8af8b13e09c..113b1ea7fe3 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Action.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Action.java
@@ -22,13 +22,14 @@ package org.sonar.api.issue.action;
import com.google.common.base.Preconditions;
import com.google.common.base.Strings;
import com.google.common.collect.Lists;
+import org.sonar.api.ServerComponent;
import org.sonar.api.issue.Issue;
import org.sonar.api.issue.condition.Condition;
import java.util.Arrays;
import java.util.List;
-public class Action {
+public class Action implements ServerComponent {
private final String key;
private final List<Condition> conditions;
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Actions.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Actions.java
index 02f3fc6cbe1..d883ab8a5c7 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Actions.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Actions.java
@@ -26,6 +26,7 @@ import java.util.Set;
/**
* @since 3.6
*/
+// TODO remove it
public interface Actions extends ServerComponent {
Actions addAction(Action action);