diff options
author | Godin <mandrikov@gmail.com> | 2010-12-13 12:40:25 +0000 |
---|---|---|
committer | Godin <mandrikov@gmail.com> | 2010-12-13 12:40:25 +0000 |
commit | 12b66215dca176a1ed3136abbbe24fb49f8b5cc9 (patch) | |
tree | b509b118856b885d2c72a3be84c6c90124044723 /sonar-ws-client | |
parent | 44a8c358c81415c9ed69ca676619bc04f56c853b (diff) | |
download | sonarqube-12b66215dca176a1ed3136abbbe24fb49f8b5cc9.tar.gz sonarqube-12b66215dca176a1ed3136abbbe24fb49f8b5cc9.zip |
SONAR-833: New Web Service to get history of measures (time machine)
Diffstat (limited to 'sonar-ws-client')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/TimeMachineUnmarshaller.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/TimeMachineUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/TimeMachineUnmarshaller.java index 8887da9abd2..dab000f069c 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/TimeMachineUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/TimeMachineUnmarshaller.java @@ -14,13 +14,13 @@ public class TimeMachineUnmarshaller implements Unmarshaller<TimeMachineData> { Map<Date, List<String>> data = new HashMap<Date, List<String>>(); for (Object key : map.keySet()) { JSONArray array = (JSONArray) map.get(key); - List<String> values = new ArrayList<String>(); + List<String> measures = new ArrayList<String>(); for (int i = 0; i < array.size(); i++) { Object elem = array.get(i); String value = elem == null ? null : elem.toString(); - values.add(value); + measures.add(value); } - data.put(JsonUtils.parseDateTime((String) key), values); + data.put(JsonUtils.parseDateTime((String) key), measures); } return new TimeMachineData().setData(data); } |