diff --git a/src/main/java/org/skriptlang/skript/lang/script/ScriptWarning.java b/src/main/java/org/skriptlang/skript/lang/script/ScriptWarning.java index ac342a8bbdd..7c02c617eba 100644 --- a/src/main/java/org/skriptlang/skript/lang/script/ScriptWarning.java +++ b/src/main/java/org/skriptlang/skript/lang/script/ScriptWarning.java @@ -6,7 +6,6 @@ import ch.njol.skript.lang.parser.ParserInstance; import ch.njol.util.Kleenean; import org.jetbrains.annotations.Nullable; -import org.jetbrains.annotations.UnknownNullability; /** * An enum containing {@link Script} warnings that can be suppressed. @@ -46,7 +45,7 @@ public enum ScriptWarning { private final String warningName; private final String pattern; - private final @UnknownNullability String deprecationMessage; + private final @Nullable String deprecationMessage; ScriptWarning(String warningName) { this(warningName, warningName); @@ -75,16 +74,15 @@ public boolean isDeprecated() { } /** - * Returns the deprecation message of this warning, or null if the warning isn't deprecated. - * @return The deprecation message. + * @return The deprecation message of this warning, or null if the warning isn't deprecated. * @see #isDeprecated() */ - public @UnknownNullability String getDeprecationMessage() { + public String getDeprecationMessage() { return deprecationMessage; } /** - * Prints the given message using {@link Skript#warning(String)} iff the current script does not suppress deprecation warnings. + * Prints the given message using {@link Skript#warning(String)} if and only if the current script does not suppress deprecation warnings. * Intended for use in {@link ch.njol.skript.lang.SyntaxElement#init(Expression[], int, Kleenean, SkriptParser.ParseResult)}. * The given message is prefixed with {@code "[Deprecated] "} to provide a common link between deprecation warnings. *