Remove nullability annotations from enum constructors
By: Darkyenus <darkyenus@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user