Remove utilities private constructors

This commit is contained in:
filoghost 2020-07-10 20:33:23 +02:00
parent 58fee17358
commit b60bba9aab
4 changed files with 1 additions and 6 deletions

View File

@ -31,8 +31,7 @@ public final class MaterialsHelper {
// Materials that are considered air (with 1.13+ compatibility) // Materials that are considered air (with 1.13+ compatibility)
private static final Collection<Material> AIR_MATERIALS = getExistingMaterials("AIR", "CAVE_AIR", "VOID_AIR"); private static final Collection<Material> AIR_MATERIALS = getExistingMaterials("AIR", "CAVE_AIR", "VOID_AIR");
private MaterialsHelper() {}
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
private static Registry<Material> initMaterialsRegistry() { private static Registry<Material> initMaterialsRegistry() {
Registry<Material> materialsRegistry = Registry.fromEnumValues(Material.class); Registry<Material> materialsRegistry = Registry.fromEnumValues(Material.class);

View File

@ -20,7 +20,6 @@ import java.util.Collection;
public final class Preconditions { public final class Preconditions {
private Preconditions() {}
public static void notNull(Object object, String objectName) { public static void notNull(Object object, String objectName) {
if (object == null) { if (object == null) {

View File

@ -16,8 +16,6 @@ package me.filoghost.chestcommands.util;
public final class Strings { public final class Strings {
private Strings() {}
public static String[] trimmedSplit(String input, String pattern) { public static String[] trimmedSplit(String input, String pattern) {
return trimmedSplit(input, pattern, 0); return trimmedSplit(input, pattern, 0);

View File

@ -23,7 +23,6 @@ import java.util.function.Function;
public final class CollectionUtils { public final class CollectionUtils {
private CollectionUtils() {}
public static boolean isNullOrEmpty(Collection<?> collection) { public static boolean isNullOrEmpty(Collection<?> collection) {
return collection == null || collection.isEmpty(); return collection == null || collection.isEmpty();