aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-client/src/main/java/org
diff options
context:
space:
mode:
authorGodin <mandrikov@gmail.com>2010-12-21 18:27:35 +0000
committerGodin <mandrikov@gmail.com>2010-12-21 18:27:35 +0000
commite0907c5e8d41609bf0cdd237743075e4a1a57ee3 (patch)
treed0c23adb5aeec2068e7ab93b91f4d747006e877c /sonar-ws-client/src/main/java/org
parent8c305fd210becd5f62c643eeadc0ae2f6c91b8a4 (diff)
downloadsonarqube-e0907c5e8d41609bf0cdd237743075e4a1a57ee3.tar.gz
sonarqube-e0907c5e8d41609bf0cdd237743075e4a1a57ee3.zip
Remove unused method
Diffstat (limited to 'sonar-ws-client/src/main/java/org')
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/JsonUtils.java11
-rw-r--r--sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/TimeMachineUnmarshaller.java10
2 files changed, 5 insertions, 16 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/JsonUtils.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/JsonUtils.java
index bdf87e27ac0..8a7092741a7 100644
--- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/JsonUtils.java
+++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/JsonUtils.java
@@ -103,15 +103,4 @@ public final class JsonUtils {
return null;
}
- /**
- * @since 2.5
- */
- public static Date parseDateTime(String dateTime) {
- try {
- SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
- return dateFormat.parse(dateTime);
- } catch (ParseException e) {
- throw new RuntimeException(e);
- }
- }
}
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 72203450dfc..b59a364bc31 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
@@ -37,8 +37,8 @@ public class TimeMachineUnmarshaller extends AbstractUnmarshaller<TimeMachine> {
int size = cols.size();
TimeMachineColumn[] result = new TimeMachineColumn[size];
for (int index = 0; index < size; index++) {
- JSONObject colJson = (JSONObject)cols.get(index);
- result[index]=new TimeMachineColumn(index, JsonUtils.getString(colJson, "metric"), null, null);
+ JSONObject colJson = (JSONObject) cols.get(index);
+ result[index] = new TimeMachineColumn(index, JsonUtils.getString(colJson, "metric"), null, null);
}
return result;
}
@@ -47,15 +47,15 @@ public class TimeMachineUnmarshaller extends AbstractUnmarshaller<TimeMachine> {
int size = cells.size();
TimeMachineCell[] result = new TimeMachineCell[size];
for (int i = 0; i < size; i++) {
- JSONObject cellJson = (JSONObject)cells.get(i);
+ JSONObject cellJson = (JSONObject) cells.get(i);
JSONArray valuesJson = JsonUtils.getArray(cellJson, "v");
Object[] resultValues = new Object[valuesJson.size()];
for (int indexValue = 0; indexValue < valuesJson.size(); indexValue++) {
Object value = valuesJson.get(indexValue);
- resultValues[indexValue]=value;
+ resultValues[indexValue] = value;
}
- result[i]=new TimeMachineCell(JsonUtils.getDateTime(cellJson, "d"), resultValues);
+ result[i] = new TimeMachineCell(JsonUtils.getDateTime(cellJson, "d"), resultValues);
}
return result;
}