Resolve itest runbundles for Gson and Commons Lang upgrades and fix JsonParser deprecations (#10345)
* Resolve itest runbundles for Gson and Commons Lang upgrades * Fix JsonParser deprecations too * Fix feature verification Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
@@ -43,7 +43,7 @@ public class ControllerVariables {
|
||||
public static ControllerVariables parse(String response) {
|
||||
LOGGER.debug("Parsing string: \"{}\"", response);
|
||||
/* parse json string */
|
||||
JsonObject jsonObject = new JsonParser().parse(response).getAsJsonObject();
|
||||
JsonObject jsonObject = JsonParser.parseString(response).getAsJsonObject();
|
||||
ControllerVariables info = new ControllerVariables();
|
||||
info.dist = jsonObject.get("dist").getAsInt();
|
||||
info.door = jsonObject.get("door").getAsInt();
|
||||
|
||||
Reference in New Issue
Block a user