diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-10-07 14:12:10 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2015-10-09 16:48:24 +0200 |
commit | f59052c8e1daed111d931893b2a08f9f5fa2a74a (patch) | |
tree | 247e34ce3bb90f2652a3fc0c4602990c66c76369 /sonar-plugin-api | |
parent | 74af3d8161ca9a767d9b6a7a2bdc3f5d29bd5003 (diff) | |
download | sonarqube-f59052c8e1daed111d931893b2a08f9f5fa2a74a.tar.gz sonarqube-f59052c8e1daed111d931893b2a08f9f5fa2a74a.zip |
SONAR-6717 Restore issues actions API
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Action.java | 2 | ||||
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/issue/action/Actions.java | 8 |
2 files changed, 3 insertions, 7 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 4a7254cfabe..46f6dabbf4e 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 @@ -30,9 +30,7 @@ import static com.google.common.collect.Lists.newArrayList; /** * @since 3.6 - * @deprecated in 5.2. Webapp can not be customized anymore to define actions on issues. */ -@Deprecated public class Action { private final String key; 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 3386cd33cf9..813a3e90990 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 @@ -25,22 +25,20 @@ import org.sonar.api.server.ServerSide; /** * @since 3.6 - * @deprecated in 5.2. Webapp can not be customized anymore to define actions on issues. */ -@Deprecated @ServerSide public class Actions { - private final List<Action> actions = new ArrayList<>(); + private final List<Action> list = new ArrayList<>(); public Action add(String actionKey) { Action action = new Action(actionKey); - this.actions.add(action); + this.list.add(action); return action; } public List<Action> list() { - return actions; + return list; } } |