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:
@@ -84,7 +84,6 @@ public class SmartherApiConnector {
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(SmartherApiConnector.class);
|
||||
|
||||
private final JsonParser parser = new JsonParser();
|
||||
private final HttpClient httpClient;
|
||||
private final ScheduledExecutorService scheduler;
|
||||
|
||||
@@ -305,7 +304,7 @@ public class SmartherApiConnector {
|
||||
private String processErrorState(ContentResponse response)
|
||||
throws SmartherTokenExpiredException, SmartherAuthorizationException, SmartherInvalidResponseException {
|
||||
try {
|
||||
final JsonElement element = parser.parse(response.getContentAsString());
|
||||
final JsonElement element = JsonParser.parseString(response.getContentAsString());
|
||||
|
||||
if (element.isJsonObject()) {
|
||||
final JsonObject object = element.getAsJsonObject();
|
||||
|
||||
Reference in New Issue
Block a user