Added Nonnull notations on BasicPermission

This commit is contained in:
Fabrizio La Rosa 2020-07-10 07:34:17 +02:00
parent c47cda4768
commit f3ad27c9e7

View File

@ -11,6 +11,7 @@ import org.bukkit.inventory.ItemFlag;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import javax.annotation.Nonnull;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
@ -21,7 +22,7 @@ public abstract class BasicPermission {
private final CompatibleMaterial icon;
private final PermissionType type;
protected BasicPermission(String name, CompatibleMaterial icon, PermissionType type) {
protected BasicPermission(@Nonnull String name, @Nonnull CompatibleMaterial icon, @Nonnull PermissionType type) {
this.name = name;
this.icon = icon;
this.type = type;