diff options
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueJsonParser.java')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueJsonParser.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueJsonParser.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueJsonParser.java index 635a624758b..906929ce308 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueJsonParser.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/issue/IssueJsonParser.java @@ -112,4 +112,14 @@ class IssueJsonParser { } return transitions; } + + List<String> parseActions(String json) { + List<String> actions = new ArrayList<String>(); + Map jRoot = (Map) JSONValue.parse(json); + List<String> jActions = (List) jRoot.get("actions"); + for (String jAction : jActions) { + actions.add(jAction); + } + return actions; + } } |