diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java index 5e2d3f3e..3f7de47d 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/LaunchServer.java @@ -65,6 +65,7 @@ import ru.gravit.launchserver.manangers.BuildHookManager; import ru.gravit.launchserver.manangers.MirrorManager; import ru.gravit.launchserver.manangers.ModulesManager; +import ru.gravit.launchserver.manangers.ReconfigurableManager; import ru.gravit.launchserver.manangers.ReloadManager; import ru.gravit.launchserver.manangers.SessionManager; import ru.gravit.launchserver.response.Response; diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/ReloadListCommand.java b/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/ReloadListCommand.java index f7e427af..e588a796 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/ReloadListCommand.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/ReloadListCommand.java @@ -2,7 +2,6 @@ import ru.gravit.launchserver.LaunchServer; import ru.gravit.launchserver.command.Command; -import ru.gravit.utils.helper.LogHelper; public class ReloadListCommand extends Command { public ReloadListCommand(LaunchServer server) { diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/SwapAuthProviderCommand.java b/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/SwapAuthProviderCommand.java index 5e89def9..6a69c785 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/SwapAuthProviderCommand.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/command/service/SwapAuthProviderCommand.java @@ -23,7 +23,8 @@ public String getUsageDescription() { return "Change authProvider"; } - @Override + @SuppressWarnings("resource") + @Override public void invoke(String... args) throws Exception { verifyArgs(args,2); if(providersCache == null) providersCache = new AuthProvider[server.config.authProvider.length]; @@ -32,7 +33,7 @@ public void invoke(String... args) throws Exception { { if(providersCache[index] == null) { - AcceptAuthProvider provider = new AcceptAuthProvider(); + AcceptAuthProvider provider = new AcceptAuthProvider(); providersCache[index] = server.config.authProvider[index]; server.config.authProvider[index] = provider; LogHelper.info("AuthProvider[%d] is AcceptAuthProvider",index); diff --git a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/ReconfigurableManager.java b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/ReconfigurableManager.java index 45d32a1f..3f0f5a0a 100644 --- a/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/ReconfigurableManager.java +++ b/LaunchServer/src/main/java/ru/gravit/launchserver/manangers/ReconfigurableManager.java @@ -1,7 +1,6 @@ package ru.gravit.launchserver.manangers; import ru.gravit.launchserver.Reconfigurable; -import ru.gravit.launchserver.Reloadable; import ru.gravit.utils.helper.LogHelper; import ru.gravit.utils.helper.VerifyHelper;