SPIGOT-2540: Add nullability annotations to entire Bukkit API
By: Darkyenus <darkyenus@gmail.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package org.bukkit.plugin;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
* Represents a base {@link Plugin}
|
||||
* <p>
|
||||
@@ -26,6 +28,7 @@ public abstract class PluginBase implements Plugin {
|
||||
return getName().equals(((Plugin) obj).getName());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
public final String getName() {
|
||||
return getDescription().getName();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user