aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-13 12:40:25 +0000
committerGodin <mandrikov@gmail.com>2010-12-13 12:40:25 +0000
commit12b66215dca176a1ed3136abbbe24fb49f8b5cc9 (patch)
treeb509b118856b885d2c72a3be84c6c90124044723 /sonar-ws-client
parent44a8c358c81415c9ed69ca676619bc04f56c853b (diff)
downloadsonarqube-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.java6
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);
}