mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI
synced 2025-09-05 17:07:06 +02:00
updated gson 2.8.5 -> 2.8.6
This commit is contained in:
@@ -36,8 +36,6 @@ public final class CommandDump extends PlaceholderCommand
|
||||
@NotNull
|
||||
private static final String URL = "https://paste.helpch.at/";
|
||||
|
||||
@NotNull
|
||||
private static final JsonParser JSON_PARSER = new JsonParser();
|
||||
@NotNull
|
||||
private static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG)
|
||||
.withLocale(Locale.US)
|
||||
@@ -89,7 +87,7 @@ public final class CommandDump extends PlaceholderCommand
|
||||
{
|
||||
//noinspection UnstableApiUsage
|
||||
final String json = CharStreams.toString(new InputStreamReader(stream, StandardCharsets.UTF_8));
|
||||
return JSON_PARSER.parse(json).getAsJsonObject().get("key").getAsString();
|
||||
return JsonParser.parseString(json).getAsJsonObject().get("key").getAsString();
|
||||
}
|
||||
}
|
||||
catch (final IOException ex)
|
||||
|
Reference in New Issue
Block a user