#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

@@ -21,7 +21,7 @@ public interface PluginAwareness {
*
* @deprecated all plugins are now assumed to be UTF-8 aware.
*/
@Deprecated
@Deprecated(since = "1.9")
UTF8,
;
}

View File

@@ -990,7 +990,7 @@ public final class PluginDescriptionFile {
* @return unused
* @deprecated unused
*/
@Deprecated
@Deprecated(since = "1.7.2")
@Nullable
public String getClassLoaderOf() {
return classLoaderOf;

View File

@@ -707,7 +707,7 @@ public final class SimplePluginManager implements PluginManager {
addPermission(perm, true);
}
@Deprecated
@Deprecated(since = "1.12")
public void addPermission(@NotNull Permission perm, boolean dirty) {
String name = perm.getName().toLowerCase(Locale.ROOT);
@@ -760,7 +760,7 @@ public final class SimplePluginManager implements PluginManager {
}
}
@Deprecated
@Deprecated(since = "1.12")
public void dirtyPermissibles() {
dirtyPermissibles(true);
dirtyPermissibles(false);

View File

@@ -59,7 +59,7 @@ public final class JavaPluginLoader implements PluginLoader {
*
* @param instance the server instance
*/
@Deprecated
@Deprecated(since = "1.4.5")
public JavaPluginLoader(@NotNull Server instance) {
Preconditions.checkArgument(instance != null, "Server cannot be null");
server = instance;

View File

@@ -468,7 +468,7 @@ public class StandardMessenger implements Messenger {
* @param channel Channel name to validate.
* @deprecated not an API method
*/
@Deprecated
@Deprecated(since = "1.13")
public static void validateChannel(@NotNull String channel) {
validateAndCorrectChannel(channel);
}
@@ -480,7 +480,7 @@ public class StandardMessenger implements Messenger {
* @return corrected channel name
* @deprecated not an API method
*/
@Deprecated
@Deprecated(since = "1.13")
@NotNull
public static String validateAndCorrectChannel(@NotNull String channel) {
if (channel == null) {