Remove nullability annotations from enum constructors

By: Darkyenus <darkyenus@gmail.com>
This commit is contained in:
Bukkit/Spigot
2019-03-14 11:28:51 +01:00
parent 416c865476
commit 9bd8e66c7d
17 changed files with 22 additions and 22 deletions

View File

@@ -311,11 +311,11 @@ public enum EntityType {
NAME_MAP.put("ender_crystal", ENDER_CRYSTAL);
}
private EntityType(@Nullable String name, @Nullable Class<? extends Entity> clazz, int typeId) {
private EntityType(/*@Nullable*/ String name, /*@Nullable*/ Class<? extends Entity> clazz, int typeId) {
this(name, clazz, typeId, true);
}
private EntityType(@Nullable String name, @Nullable Class<? extends Entity> clazz, int typeId, boolean independent) {
private EntityType(/*@Nullable*/ String name, /*@Nullable*/ Class<? extends Entity> clazz, int typeId, boolean independent) {
this.name = name;
this.clazz = clazz;
this.typeId = (short) typeId;

View File

@@ -236,7 +236,7 @@ public interface Villager extends Ageable, NPC, InventoryHolder, Merchant {
private static final Multimap<Profession, Career> careerMap = LinkedListMultimap.create();
private final Profession profession;
private Career(@NotNull Profession profession) {
private Career(/*@NotNull*/ Profession profession) {
this.profession = profession;
}