aboutsummaryrefslogtreecommitdiff
path: root/spark-bukkit/src
diff options
context:
space:
mode:
authorLuck <git@lucko.me>2019-08-09 20:35:26 +0100
committerLuck <git@lucko.me>2019-08-09 20:35:26 +0100
commitdc6968c4b56d9f04fa1b56808c298bdda77a442c (patch)
tree438189e04143ed578850cc5274fc0f6e995f8d60 /spark-bukkit/src
parent87c818a71b7102c9a8bcbf8d125a80da599ea965 (diff)
downloadspark-dc6968c4b56d9f04fa1b56808c298bdda77a442c.tar.gz
spark-dc6968c4b56d9f04fa1b56808c298bdda77a442c.tar.bz2
spark-dc6968c4b56d9f04fa1b56808c298bdda77a442c.zip
Codestyle changes
Diffstat (limited to 'spark-bukkit/src')
-rw-r--r--spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java
index c65bc23..28b7475 100644
--- a/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java
+++ b/spark-bukkit/src/main/java/me/lucko/spark/bukkit/CommandMapUtil.java
@@ -44,7 +44,8 @@ import java.util.Map;
/**
* Utility for interacting with the server's {@link CommandMap} instance.
*/
-final class CommandMapUtil {
+enum CommandMapUtil {
+ ;
private static final Constructor<PluginCommand> COMMAND_CONSTRUCTOR;
private static final Field COMMAND_MAP_FIELD;
@@ -145,8 +146,4 @@ final class CommandMapUtil {
return command;
}
- private CommandMapUtil() {
- throw new UnsupportedOperationException("This class cannot be instantiated");
- }
-
} \ No newline at end of file