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:
@@ -224,8 +224,7 @@ public class YIOremoteDockHandler extends BaseThingHandler {
|
||||
|
||||
private JsonObject convertStringToJsonObject(String jsonString) {
|
||||
try {
|
||||
JsonParser parser = new JsonParser();
|
||||
JsonElement jsonElement = parser.parse(jsonString);
|
||||
JsonElement jsonElement = JsonParser.parseString(jsonString);
|
||||
JsonObject result;
|
||||
|
||||
if (jsonElement instanceof JsonObject) {
|
||||
|
||||
Reference in New Issue
Block a user