#1082: Add "since" to Deprecation annotations

By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
Bukkit/Spigot
2024-11-25 07:52:33 +11:00
parent 98f6ab9a04
commit 0023e5549a
257 changed files with 1523 additions and 1176 deletions

View File

@@ -69,7 +69,7 @@ public interface PatternType extends OldEnum<PatternType>, Keyed {
* @deprecated magic value
*/
@NotNull
@Deprecated(forRemoval = true)
@Deprecated(since = "1.20.4", forRemoval = true)
public String getIdentifier();
/**
@@ -83,7 +83,7 @@ public interface PatternType extends OldEnum<PatternType>, Keyed {
*/
@Contract("null -> null")
@Nullable
@Deprecated(forRemoval = true)
@Deprecated(since = "1.20.4", forRemoval = true)
public static PatternType getByIdentifier(@Nullable String identifier) {
if (identifier == null) {
return null;