diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java index d148bc17..d7b3d727 100644 --- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java +++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/EncryptionUtil.java @@ -87,7 +87,7 @@ final class EncryptionUtil { } private EncryptionUtil() { - // utility + throw new RuntimeException("No instantiation of utility classes allowed"); } /** diff --git a/core/src/main/java/com/github/games647/fastlogin/core/CommonUtil.java b/core/src/main/java/com/github/games647/fastlogin/core/CommonUtil.java index 89dc7ee2..d985086b 100644 --- a/core/src/main/java/com/github/games647/fastlogin/core/CommonUtil.java +++ b/core/src/main/java/com/github/games647/fastlogin/core/CommonUtil.java @@ -28,6 +28,7 @@ package com.github.games647.fastlogin.core; import com.google.common.cache.CacheBuilder; import java.lang.reflect.Constructor; +import java.lang.reflect.InvocationTargetException; import java.util.concurrent.ConcurrentMap; import java.util.concurrent.TimeUnit; import java.util.logging.Level; @@ -71,7 +72,7 @@ public final class CommonUtil { * This creates a SLF4J logger. In the process it initializes the SLF4J service provider. This method looks * for the provider in the plugin jar instead of in the server jar when creating a Logger. The provider is only * initialized once, so this method should be called early. - * + *
* The provider is bound to the service class `SLF4JServiceProvider`. Relocating this class makes it available
* for exclusive own usage. Other dependencies will use the relocated service too, and therefore will find the
* initialized provider.
@@ -95,7 +96,8 @@ public final class CommonUtil {
Constructor