From c528e4cd42fc14bf0a0a6adabfa4d9684868e6ad Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 6 Jan 2022 15:00:31 +0000 Subject: [PATCH] Referencing for-removal arg parsers at all will now log an error --- .../java/com/willfp/eco/core/items/args/ColorArgParser.java | 4 +++- .../willfp/eco/core/items/args/CustomModelDataArgParser.java | 2 +- .../com/willfp/eco/core/items/args/EnchantmentArgParser.java | 2 +- .../java/com/willfp/eco/core/items/args/TextureArgParser.java | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java index b76cbf65..5c77013c 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/ColorArgParser.java @@ -3,6 +3,7 @@ package com.willfp.eco.core.items.args; import org.bukkit.Bukkit; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; @@ -14,6 +15,7 @@ import java.util.function.Predicate; * @deprecated Moved to internals. */ @Deprecated(since = "6.16.0", forRemoval = true) +@ApiStatus.ScheduledForRemoval(inVersion = "6.18.1") public class ColorArgParser implements LookupArgParser { /** * Instantiate arg parser. @@ -29,6 +31,6 @@ public class ColorArgParser implements LookupArgParser { } static { - Bukkit.getLogger().severe("Referencing a class marked for removal! (" + ColorArgParser.class.getName() + "), this will throw an error in a future release!"); + Bukkit.getLogger().severe("Referencing a class marked for removal! (" + ColorArgParser.class.getName() + "), this will throw an error in the next release!"); } } diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java index a0895f82..9fae5a4d 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/CustomModelDataArgParser.java @@ -29,6 +29,6 @@ public class CustomModelDataArgParser implements LookupArgParser { } static { - Bukkit.getLogger().severe("Referencing a class marked for removal! (" + CustomModelDataArgParser.class.getName() + "), this will throw an error in a future release!"); + Bukkit.getLogger().severe("Referencing a class marked for removal! (" + CustomModelDataArgParser.class.getName() + "), this will throw an error in the next release!"); } } diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java index 9ddfa705..bdec8e39 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/EnchantmentArgParser.java @@ -29,6 +29,6 @@ public class EnchantmentArgParser implements LookupArgParser { } static { - Bukkit.getLogger().severe("Referencing a class marked for removal! (" + EnchantmentArgParser.class.getName() + "), this will throw an error in a future release!"); + Bukkit.getLogger().severe("Referencing a class marked for removal! (" + EnchantmentArgParser.class.getName() + "), this will throw an error in the next release!"); } } diff --git a/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java b/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java index 1a448cda..8d87d4ba 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java +++ b/eco-api/src/main/java/com/willfp/eco/core/items/args/TextureArgParser.java @@ -29,6 +29,6 @@ public class TextureArgParser implements LookupArgParser { } static { - Bukkit.getLogger().severe("Referencing a class marked for removal! (" + TextureArgParser.class.getName() + "), this will throw an error in a future release!"); + Bukkit.getLogger().severe("Referencing a class marked for removal! (" + TextureArgParser.class.getName() + "), this will throw an error in the next release!"); } }