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:
@@ -147,8 +147,7 @@ public class NeeoApi implements AutoCloseable {
|
||||
throw resp.createException();
|
||||
}
|
||||
|
||||
final JsonParser parser = new JsonParser();
|
||||
final JsonObject root = parser.parse(resp.getContent()).getAsJsonObject();
|
||||
final JsonObject root = JsonParser.parseString(resp.getContent()).getAsJsonObject();
|
||||
for (Map.Entry<String, JsonElement> room : root.getAsJsonObject("rooms").entrySet()) {
|
||||
final JsonObject roomObj = (JsonObject) room.getValue();
|
||||
|
||||
|
||||
@@ -83,8 +83,7 @@ public class NeeoDeviceKeys {
|
||||
|
||||
uidToKey.clear();
|
||||
|
||||
final JsonParser parser = new JsonParser();
|
||||
final JsonObject root = parser.parse(resp.getContent()).getAsJsonObject();
|
||||
final JsonObject root = JsonParser.parseString(resp.getContent()).getAsJsonObject();
|
||||
for (Map.Entry<String, JsonElement> room : root.getAsJsonObject("rooms").entrySet()) {
|
||||
final JsonObject roomObj = (JsonObject) room.getValue();
|
||||
for (Map.Entry<String, JsonElement> dev : roomObj.getAsJsonObject("devices").entrySet()) {
|
||||
|
||||
Reference in New Issue
Block a user