From dcf98c229827ccdfdf56c2217c29bfac0ed142b1 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Mon, 25 Jul 2022 21:10:39 +0200 Subject: [PATCH] build: Release 6.9.3 --- .../caption/load/CaptionLoader.java | 4 ++-- .../com/plotsquared/core/util/Permissions.java | 16 ++++++++-------- build.gradle.kts | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/configuration/caption/load/CaptionLoader.java b/Core/src/main/java/com/plotsquared/core/configuration/caption/load/CaptionLoader.java index ca6e934b0b..68d99220cf 100644 --- a/Core/src/main/java/com/plotsquared/core/configuration/caption/load/CaptionLoader.java +++ b/Core/src/main/java/com/plotsquared/core/configuration/caption/load/CaptionLoader.java @@ -174,7 +174,7 @@ private static void save(final Path file, final Map content) { public @NonNull CaptionMap loadAll(final @NonNull Path directory) throws IOException { final Map localeMaps = new HashMap<>(); try (final Stream files = Files.list(directory)) { - final List captionFiles = files.filter(Files::isRegularFile).collect(Collectors.toList()); + final List captionFiles = files.filter(Files::isRegularFile).toList(); for (Path file : captionFiles) { try { final CaptionMap localeMap = loadSingle(file); @@ -221,7 +221,7 @@ private static void save(final Path file, final Map content) { * @throws IOException if the file couldn't be accessed or read successfully. * @throws IllegalArgumentException if the file name doesn't match the specified format. * @see #loadSingle(Path) - * @since TODO + * @since 6.9.3 */ public @NonNull CaptionMap loadOrCreateSingle(final @NonNull Path file) throws IOException { final Locale locale = this.localeExtractor.apply(file); diff --git a/Core/src/main/java/com/plotsquared/core/util/Permissions.java b/Core/src/main/java/com/plotsquared/core/util/Permissions.java index f3a1df019b..06d0ddbee4 100644 --- a/Core/src/main/java/com/plotsquared/core/util/Permissions.java +++ b/Core/src/main/java/com/plotsquared/core/util/Permissions.java @@ -34,14 +34,14 @@ * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ -@Deprecated(forRemoval = true, since = "TODO") +@Deprecated(forRemoval = true, since = "6.9.3") public class Permissions { /** * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static boolean hasPermission(PlotPlayer player, Permission permission, boolean notify) { return hasPermission(player, permission.toString(), notify); } @@ -55,7 +55,7 @@ public static boolean hasPermission(PlotPlayer player, Permission permission, * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static boolean hasPermission(final @NonNull PermissionHolder caller, final @NonNull Permission permission) { return caller.hasPermission(permission.toString()); } @@ -70,7 +70,7 @@ public static boolean hasPermission(final @NonNull PermissionHolder caller, fina * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static boolean hasPermission(final @NonNull PermissionHolder caller, final @NonNull String permission) { return caller.hasPermission(permission); } @@ -87,7 +87,7 @@ public static boolean hasPermission(final @NonNull PermissionHolder caller, fina * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static boolean hasKeyedPermission( final @NonNull PermissionHolder caller, final @NonNull String permission, final @NonNull String key @@ -105,7 +105,7 @@ public static boolean hasKeyedPermission( * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static boolean hasPermission(PlotPlayer player, String permission, boolean notify) { if (!hasPermission(player, permission)) { if (notify) { @@ -123,7 +123,7 @@ public static boolean hasPermission(PlotPlayer player, String permission, boo * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static int hasPermissionRange(PlotPlayer player, Permission Permission, int range) { return hasPermissionRange(player, Permission.toString(), range); } @@ -140,7 +140,7 @@ public static int hasPermissionRange(PlotPlayer player, Permission Permission * @deprecated all logic that may once have been in the class lives elsewhere. We also want to do away with statically-accessed * classes */ - @Deprecated(forRemoval = true, since = "TODO") + @Deprecated(forRemoval = true, since = "6.9.3") public static int hasPermissionRange(PlotPlayer player, String stub, int range) { return player.hasPermissionRange(stub, range); } diff --git a/build.gradle.kts b/build.gradle.kts index cb5f2a14b8..636c715cc9 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -19,7 +19,7 @@ plugins { } group = "com.plotsquared" -version = "6.9.3-SNAPSHOT" +version = "6.9.3" subprojects { group = rootProject.group