mirror of
https://github.com/PlaceholderAPI/PlaceholderAPI.git
synced 2024-12-11 11:51:40 +01:00
updated gson 2.8.5 -> 2.8.6
This commit is contained in:
parent
b464590491
commit
c3e0c1fb64
@ -18,7 +18,7 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.google.code.gson:gson:2.8.5'
|
implementation 'com.google.code.gson:gson:2.8.6'
|
||||||
implementation 'org.bstats:bstats-bukkit:1.5'
|
implementation 'org.bstats:bstats-bukkit:1.5'
|
||||||
implementation 'me.rayzr522:jsonmessage:1.2.1'
|
implementation 'me.rayzr522:jsonmessage:1.2.1'
|
||||||
|
|
||||||
|
@ -36,8 +36,6 @@ public final class CommandDump extends PlaceholderCommand
|
|||||||
@NotNull
|
@NotNull
|
||||||
private static final String URL = "https://paste.helpch.at/";
|
private static final String URL = "https://paste.helpch.at/";
|
||||||
|
|
||||||
@NotNull
|
|
||||||
private static final JsonParser JSON_PARSER = new JsonParser();
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG)
|
private static final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofLocalizedDateTime(FormatStyle.LONG)
|
||||||
.withLocale(Locale.US)
|
.withLocale(Locale.US)
|
||||||
@ -89,7 +87,7 @@ public final class CommandDump extends PlaceholderCommand
|
|||||||
{
|
{
|
||||||
//noinspection UnstableApiUsage
|
//noinspection UnstableApiUsage
|
||||||
final String json = CharStreams.toString(new InputStreamReader(stream, StandardCharsets.UTF_8));
|
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)
|
catch (final IOException ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user