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:
Wouter Born
2021-03-18 12:15:15 +01:00
committed by GitHub
parent 009208adee
commit 580f293766
86 changed files with 206 additions and 215 deletions

View File

@@ -53,7 +53,6 @@ class SpotifyConnector {
private final Logger logger = LoggerFactory.getLogger(SpotifyConnector.class);
private final JsonParser parser = new JsonParser();
private final HttpClient httpClient;
private final ScheduledExecutorService scheduler;
@@ -234,7 +233,7 @@ class SpotifyConnector {
*/
private String processErrorState(ContentResponse response) {
try {
final JsonElement element = parser.parse(response.getContentAsString());
final JsonElement element = JsonParser.parseString(response.getContentAsString());
if (element.isJsonObject()) {
final JsonObject object = element.getAsJsonObject();