Displaying differences for changeset |
@@ -450,7 +450,7 @@ |
public static List<Double> toDoubleList(JSONArray o) throws JSONException { |
int len = o.length(); |
- List<Double> d = new ArrayList(len); |
+ List<Double> d = new ArrayList<>(len); |
for (int i = 0; i < len; i++) { |
d.add(o.getDouble(i)); |
} |
@@ -459,7 +459,7 @@ |
public static List<DateTime> toDateTimeList(JSONArray o) throws JSONException, ParseException { |
int len = o.length(); |
- List<DateTime> d = new ArrayList(len); |
+ List<DateTime> d = new ArrayList<>(len); |
for (int i = 0; i < len; i++) { |
d.add(DateUtils.toDate(o.getString(i), DateUtils.DEFAULT_DATE_FORMAT)); |
} |
@@ -15,10 +15,8 @@ |
import java.util.Date; |
import java.util.HashMap; |
import java.util.Map; |
-import java.util.stream.StreamSupport; |
import javax.ws.rs.Path; |
import oms3.annotations.*; |
-import org.apache.commons.io.FileUtils; |
import org.rythmengine.Rythm; |
import org.freshvanilla.compile.CachedCompiler; |
import org.freshvanilla.compile.CompilerUtils; |