aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java
index f766a4b6b69..001ac3463fc 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java
@@ -45,7 +45,8 @@ public class RuleUnmarshaller extends AbstractUnmarshaller<Rule> {
.setKey(JsonUtils.getString(json, "key"))
.setPlugin(JsonUtils.getString(json, "plugin"))
.setDescription(JsonUtils.getString(json, "description"))
- .setSeverity(JsonUtils.getString(json, "priority"));
+ .setSeverity(JsonUtils.getString(json, "priority"))
+ .setActive("ACTIVE".equals(JsonUtils.getString(json, "status")));
}
private void parseParams(JSONObject json, Rule rule) {