#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

@@ -22,7 +22,7 @@ public class BroadcastMessageEvent extends ServerEvent implements Cancellable {
private final Set<CommandSender> recipients;
private boolean cancelled = false;
@Deprecated
@Deprecated(since = "1.14")
public BroadcastMessageEvent(@NotNull String message, @NotNull Set<CommandSender> recipients) {
this(false, message, recipients);
}

View File

@@ -127,7 +127,7 @@ public class ServerListPingEvent extends ServerEvent implements Iterable<Player>
* @return true if chat preview is enabled, false otherwise
* @deprecated chat previews have been removed
*/
@Deprecated
@Deprecated(since = "1.19.3")
public boolean shouldSendChatPreviews() {
return false;
}