use parseStrict instead of parseLenient since with GWT 2.8.2 parseStrict is deprecated

Change-Id: Ia2fd866c8845156e725ae96564a26fee04bdd160
This commit is contained in:
Axel Uhl committed 2017-10-25 15:07:48 +02:00
1 parent 6c2124653d
commit 414a87f5ff
1 file changed
+1 -1
@@ -64,7 +64,7 @@ public class RectField implements VectorField {
}
public static RectField read(String jsonData, boolean correctForSphere, StreamletParameters parameters, CoordinateSystem coordinateSystem) {
JSONObject data = JSONParser.parseLenient(jsonData).isObject();
JSONObject data = JSONParser.parseStrict(jsonData).isObject();
int w = (int) data.get("gridWidth").isNumber().doubleValue();
int h = (int) data.get("gridHeight").isNumber().doubleValue();
Vector[][] field = new Vector[w][h];