From b60bba9aab7630bf07f53161e55150b7b38ccdda Mon Sep 17 00:00:00 2001 From: filoghost Date: Fri, 10 Jul 2020 20:33:23 +0200 Subject: [PATCH] Remove utilities private constructors --- .../java/me/filoghost/chestcommands/util/MaterialsHelper.java | 3 +-- .../java/me/filoghost/chestcommands/util/Preconditions.java | 1 - .../src/main/java/me/filoghost/chestcommands/util/Strings.java | 2 -- .../chestcommands/util/collection/CollectionUtils.java | 1 - 4 files changed, 1 insertion(+), 6 deletions(-) diff --git a/Utils/src/main/java/me/filoghost/chestcommands/util/MaterialsHelper.java b/Utils/src/main/java/me/filoghost/chestcommands/util/MaterialsHelper.java index da2c039..2c32616 100644 --- a/Utils/src/main/java/me/filoghost/chestcommands/util/MaterialsHelper.java +++ b/Utils/src/main/java/me/filoghost/chestcommands/util/MaterialsHelper.java @@ -31,8 +31,7 @@ public final class MaterialsHelper { // Materials that are considered air (with 1.13+ compatibility) private static final Collection AIR_MATERIALS = getExistingMaterials("AIR", "CAVE_AIR", "VOID_AIR"); - private MaterialsHelper() {} - + @SuppressWarnings("deprecation") private static Registry initMaterialsRegistry() { Registry materialsRegistry = Registry.fromEnumValues(Material.class); diff --git a/Utils/src/main/java/me/filoghost/chestcommands/util/Preconditions.java b/Utils/src/main/java/me/filoghost/chestcommands/util/Preconditions.java index ead530c..0032a1d 100644 --- a/Utils/src/main/java/me/filoghost/chestcommands/util/Preconditions.java +++ b/Utils/src/main/java/me/filoghost/chestcommands/util/Preconditions.java @@ -20,7 +20,6 @@ import java.util.Collection; public final class Preconditions { - private Preconditions() {} public static void notNull(Object object, String objectName) { if (object == null) { diff --git a/Utils/src/main/java/me/filoghost/chestcommands/util/Strings.java b/Utils/src/main/java/me/filoghost/chestcommands/util/Strings.java index 075cfca..42c1ae7 100644 --- a/Utils/src/main/java/me/filoghost/chestcommands/util/Strings.java +++ b/Utils/src/main/java/me/filoghost/chestcommands/util/Strings.java @@ -16,8 +16,6 @@ package me.filoghost.chestcommands.util; public final class Strings { - private Strings() {} - public static String[] trimmedSplit(String input, String pattern) { return trimmedSplit(input, pattern, 0); diff --git a/Utils/src/main/java/me/filoghost/chestcommands/util/collection/CollectionUtils.java b/Utils/src/main/java/me/filoghost/chestcommands/util/collection/CollectionUtils.java index f41a490..d6b01a1 100644 --- a/Utils/src/main/java/me/filoghost/chestcommands/util/collection/CollectionUtils.java +++ b/Utils/src/main/java/me/filoghost/chestcommands/util/collection/CollectionUtils.java @@ -23,7 +23,6 @@ import java.util.function.Function; public final class CollectionUtils { - private CollectionUtils() {} public static boolean isNullOrEmpty(Collection collection) { return collection == null || collection.isEmpty();