aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-gwt-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-07 16:17:50 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-07 16:17:50 +0000
commit0cd519b35d499f60fceec66f08dc7ca80301f127 (patch)
tree8c9a547da0ee1ce5c1bf20e9d139f1f705b42bec /sonar-gwt-api
parentc1cfffea2098a53ab078deb9bebe47b627c389cf (diff)
downloadsonarqube-0cd519b35d499f60fceec66f08dc7ca80301f127.tar.gz
sonarqube-0cd519b35d499f60fceec66f08dc7ca80301f127.zip
SONAR-1937 add the field 'age' to violations web service + display the select box to filter violations by period
Diffstat (limited to 'sonar-gwt-api')
-rw-r--r--sonar-gwt-api/src/main/java/org/sonar/wsclient/gwt/unmarshallers/ViolationUnmarshaller.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-gwt-api/src/main/java/org/sonar/wsclient/gwt/unmarshallers/ViolationUnmarshaller.java b/sonar-gwt-api/src/main/java/org/sonar/wsclient/gwt/unmarshallers/ViolationUnmarshaller.java
index 7dc2efae3a5..d5fff51f259 100644
--- a/sonar-gwt-api/src/main/java/org/sonar/wsclient/gwt/unmarshallers/ViolationUnmarshaller.java
+++ b/sonar-gwt-api/src/main/java/org/sonar/wsclient/gwt/unmarshallers/ViolationUnmarshaller.java
@@ -29,8 +29,9 @@ public class ViolationUnmarshaller extends AbstractUnmarshaller<Violation> {
Violation violation = new Violation();
violation.setMessage(JsonUtils.getString(json, "message"));
violation.setLine(JsonUtils.getInteger(json, "line"));
- violation.setPriority(JsonUtils.getString(json, "priority"));
+ violation.setSeverity(JsonUtils.getString(json, "priority"));
violation.setCreatedAt(JsonUtils.getDate(json, "createdAt"));
+ violation.setAge(JsonUtils.getInteger(json, "age"));
JSONObject rule = (JSONObject) json.get("rule");
if (rule != null) {