#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

@@ -19,7 +19,7 @@ public interface Sign extends TileState, Colorable {
* @return Array of Strings containing each line of text
* @deprecated A sign may have multiple writable sides now. Use {@link Sign#getSide(Side)} and {@link SignSide#getLines()}.
*/
@Deprecated
@Deprecated(since = "1.20")
@NotNull
public String[] getLines();
@@ -33,7 +33,7 @@ public interface Sign extends TileState, Colorable {
* @throws IndexOutOfBoundsException Thrown when the line does not exist
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#getLine(int)}.
*/
@Deprecated
@Deprecated(since = "1.20")
@NotNull
public String getLine(int index) throws IndexOutOfBoundsException;
@@ -48,7 +48,7 @@ public interface Sign extends TileState, Colorable {
* @throws IndexOutOfBoundsException If the index is out of the range 0..3
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setLine(int, String)}.
*/
@Deprecated
@Deprecated(since = "1.20")
public void setLine(int index, @NotNull String line) throws IndexOutOfBoundsException;
/**
@@ -57,7 +57,7 @@ public interface Sign extends TileState, Colorable {
* @return if this sign is currently editable
* @deprecated use {@link #isWaxed()} instead
*/
@Deprecated
@Deprecated(since = "1.20.1")
public boolean isEditable();
/**
@@ -66,7 +66,7 @@ public interface Sign extends TileState, Colorable {
* @param editable if this sign is currently editable
* @deprecated use {@link #setWaxed(boolean)} instead
*/
@Deprecated
@Deprecated(since = "1.20.1")
public void setEditable(boolean editable);
/**
@@ -91,7 +91,7 @@ public interface Sign extends TileState, Colorable {
* @return if this sign has glowing text
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#isGlowingText()}.
*/
@Deprecated
@Deprecated(since = "1.20")
public boolean isGlowingText();
/**
@@ -100,7 +100,7 @@ public interface Sign extends TileState, Colorable {
* @param glowing if this sign has glowing text
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setGlowingText(boolean)}.
*/
@Deprecated
@Deprecated(since = "1.20")
public void setGlowingText(boolean glowing);
/**
@@ -110,7 +110,7 @@ public interface Sign extends TileState, Colorable {
*/
@NotNull
@Override
@Deprecated
@Deprecated(since = "1.20")
public DyeColor getColor();
/**
@@ -119,7 +119,7 @@ public interface Sign extends TileState, Colorable {
* @deprecated A sign may have multiple writable sides now. Use {@link #getSide(Side)} and {@link SignSide#setColor(org.bukkit.DyeColor)}.
*/
@Override
@Deprecated
@Deprecated(since = "1.20")
public void setColor(@NotNull DyeColor color);
/**