diff --git a/src/main/java/fr/xephi/authme/AuthMe.java b/src/main/java/fr/xephi/authme/AuthMe.java index 511a31bb7..1d7d35688 100644 --- a/src/main/java/fr/xephi/authme/AuthMe.java +++ b/src/main/java/fr/xephi/authme/AuthMe.java @@ -106,7 +106,6 @@ public class AuthMe extends JavaPlugin { private PermissionsManager permsMan; private NewSetting newSettings; private Messages messages; - private PasswordSecurity passwordSecurity; private DataSource database; private PluginHooks pluginHooks; private SpawnLoader spawnLoader; @@ -289,7 +288,7 @@ public class AuthMe extends JavaPlugin { permsMan = injector.getSingleton(PermissionsManager.class); bukkitService = injector.getSingleton(BukkitService.class); pluginHooks = injector.getSingleton(PluginHooks.class); - passwordSecurity = injector.getSingleton(PasswordSecurity.class); + injector.getSingleton(PasswordSecurity.class); spawnLoader = injector.getSingleton(SpawnLoader.class); commandHandler = injector.getSingleton(CommandHandler.class); management = injector.getSingleton(Management.class); diff --git a/src/test/java/fr/xephi/authme/command/executable/authme/ReloadCommandTest.java b/src/test/java/fr/xephi/authme/command/executable/authme/ReloadCommandTest.java index f21d34081..a9faf858a 100644 --- a/src/test/java/fr/xephi/authme/command/executable/authme/ReloadCommandTest.java +++ b/src/test/java/fr/xephi/authme/command/executable/authme/ReloadCommandTest.java @@ -111,6 +111,7 @@ public class ReloadCommandTest { verify(authMe).stopOrUnload(); } + @SuppressWarnings("unchecked") @Test public void shouldIssueWarningForChangedDatasourceSetting() { // given