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:
@@ -38,8 +38,7 @@ public class AtomicStringTypeAdapter extends TypeAdapter<AtomicReference<String>
|
||||
public AtomicReference<String> read(JsonReader in) throws IOException {
|
||||
AtomicReference<String> value = null;
|
||||
|
||||
JsonParser jsonParser = new JsonParser();
|
||||
JsonElement je = jsonParser.parse(in);
|
||||
JsonElement je = JsonParser.parseReader(in);
|
||||
|
||||
if (je instanceof JsonPrimitive) {
|
||||
value = new AtomicReference<>();
|
||||
|
||||
Reference in New Issue
Block a user