Remove @Nullable

This commit is contained in:
Ran
2021-11-30 23:05:39 +06:00
parent 806a1e99db
commit a489810d68
2 changed files with 4 additions and 11 deletions
@@ -6,8 +6,6 @@ import java.util.Map;
import java.util.function.Predicate;
import java.util.stream.Collectors;
import javax.annotation.Nullable;
import com.seibel.lod.core.objects.math.Vec3i;
/**
@@ -227,9 +225,8 @@ public enum LodDirection
{
return this.axis;
}
@Nullable
public static LodDirection byName(@Nullable String name)
public static LodDirection byName(String name)
{
return name == null ? null : BY_NAME.get(name.toLowerCase(Locale.ROOT));
}
@@ -385,8 +382,7 @@ public enum LodDirection
{
this.name = name;
}
@Nullable
public static LodDirection.Axis byName(String name)
{
return BY_NAME.get(name.toLowerCase(Locale.ROOT));
@@ -419,7 +415,7 @@ public enum LodDirection
// }
@Override
public boolean test(@Nullable LodDirection p_test_1_)
public boolean test(LodDirection p_test_1_)
{
return p_test_1_ != null && p_test_1_.getAxis() == this;
}
@@ -25,8 +25,6 @@ import java.nio.ByteOrder;
import java.nio.FloatBuffer;
import java.util.List;
import javax.annotation.Nullable;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -53,7 +51,6 @@ public class LodBufferBuilder
private int nextElementByte = 0;
private int totalUploadedBytes = 0;
private int vertices;
@Nullable
private LodVertexFormatElement currentElement;
private int elementIndex;
private int mode;