diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-08 13:23:18 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-12-08 13:23:18 +0000 |
commit | 72d3b0a889574cea355b61f7395b38a55071da33 (patch) | |
tree | ccf1d4e3fb47c30aa0addce09913d5017833b559 /sonar-ws-client | |
parent | 4a7eae13c556369592da2ed726e4c8546b61a17a (diff) | |
download | sonarqube-72d3b0a889574cea355b61f7395b38a55071da33.tar.gz sonarqube-72d3b0a889574cea355b61f7395b38a55071da33.zip |
SONAR-1937 violations tab : display violation age in days to current date
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java | 13 | ||||
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java | 1 |
2 files changed, 0 insertions, 14 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java index c984d15a3bf..ff0c3f22ce9 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Violation.java @@ -33,7 +33,6 @@ public class Violation extends Model { private String resourceScope = null; private String resourceQualifier = null; private Date createdAt = null; - private Integer age = null; public String getMessage() { return message; @@ -137,18 +136,6 @@ public class Violation extends Model { /** * @since 2.5 */ - public Integer getAge() { - return age; - } - - public Violation setAge(Integer age) { - this.age = age; - return this; - } - - /** - * @since 2.5 - */ public Date getCreatedAt() { return createdAt; } diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java index c0c5aa538cc..258e5938570 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/ViolationUnmarshaller.java @@ -31,7 +31,6 @@ public class ViolationUnmarshaller extends AbstractUnmarshaller<Violation> { violation.setLine(JsonUtils.getInteger(json, "line")); violation.setSeverity(JsonUtils.getString(json, "priority")); violation.setCreatedAt(JsonUtils.getDateTime(json, "createdAt")); - violation.setAge(JsonUtils.getInteger(json, "age")); JSONObject rule = (JSONObject) json.get("rule"); if (rule != null) { |