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:
@@ -82,7 +82,6 @@ public class KeContactHandler extends BaseThingHandler {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(KeContactHandler.class);
|
||||
|
||||
protected final JsonParser parser = new JsonParser();
|
||||
private final KeContactTransceiver transceiver;
|
||||
|
||||
private ScheduledFuture<?> pollingJob;
|
||||
@@ -236,7 +235,7 @@ public class KeContactHandler extends BaseThingHandler {
|
||||
}
|
||||
|
||||
try {
|
||||
JsonObject readObject = parser.parse(response).getAsJsonObject();
|
||||
JsonObject readObject = JsonParser.parseString(response).getAsJsonObject();
|
||||
|
||||
for (Entry<String, JsonElement> entry : readObject.entrySet()) {
|
||||
switch (entry.getKey()) {
|
||||
|
||||
Reference in New Issue
Block a user