Referencing for-removal arg parsers at all will now log an error

This commit is contained in:
Auxilor
2022-01-06 15:00:31 +00:00
parent 2724f21d4e
commit c528e4cd42
4 changed files with 6 additions and 4 deletions

View File

@@ -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!");
}
}

View File

@@ -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!");
}
}

View File

@@ -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!");
}
}

View File

@@ -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!");
}
}