goauth

Fabric plugin for enhanced whitelists
git clone git://git.bain.cz/goauth.git
Log | Files | Refs | README | LICENSE

commit ad8c8b9b91cac73e4661dce974b5838d45d9a106
parent 7bee0491d39b16f4fc2a25aa70be40b905c56925
Author: bain <bain@bain.cz>
Date:   Fri,  3 Dec 2021 16:23:29 +0100

remove usage of deprecated code

Diffstat:
Msrc/main/java/cz/bain/plugins/goauth/WhitelistUpdateRunner.java | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/cz/bain/plugins/goauth/WhitelistUpdateRunner.java b/src/main/java/cz/bain/plugins/goauth/WhitelistUpdateRunner.java @@ -72,8 +72,7 @@ public class WhitelistUpdateRunner implements Runnable { outputStream.flush(); continue; } - JsonParser parser = new JsonParser(); - JsonArray el = parser.parse(new String(plainText, StandardCharsets.UTF_8)).getAsJsonArray(); + JsonArray el = JsonParser.parseString(new String(plainText, StandardCharsets.UTF_8)).getAsJsonArray(); Goauth.LOGGER.info("Got " + el.size() + " new whitelist updates"); synchronized (this.plugin.completed) { for (JsonElement user : el) {