From eafb3b6653de45d88676f4811ed9a91bcd604537 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Fri, 3 Jun 2016 00:07:25 +0200 Subject: [PATCH] cleanup --- .../xephi/authme/permission/handlers/ZPermissionsHandler.java | 3 +-- .../fr/xephi/authme/settings/properties/SecuritySettings.java | 1 - .../java/fr/xephi/authme/command/CommandConsistencyTest.java | 1 + .../java/fr/xephi/authme/listener/ListenerServiceTest.java | 1 + 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java b/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java index 18e433ba4..fb2490f7e 100644 --- a/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java +++ b/src/main/java/fr/xephi/authme/permission/handlers/ZPermissionsHandler.java @@ -53,10 +53,9 @@ public class ZPermissionsHandler implements PermissionHandler { } @Override - @SuppressWarnings("unchecked") public List getGroups(Player player) { // TODO Gnat008 20160631: Use UUID not name? - return new ArrayList(zPermissionsService.getPlayerGroups(player.getName())); + return new ArrayList(zPermissionsService.getPlayerGroups(player.getName())); } @Override diff --git a/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java b/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java index f865793b2..3419a05c7 100644 --- a/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java +++ b/src/main/java/fr/xephi/authme/settings/properties/SecuritySettings.java @@ -7,7 +7,6 @@ import fr.xephi.authme.settings.domain.SettingsClass; import java.util.List; -import static fr.xephi.authme.settings.domain.Property.newListProperty; import static fr.xephi.authme.settings.domain.Property.newLowercaseListProperty; import static fr.xephi.authme.settings.domain.Property.newProperty; diff --git a/src/test/java/fr/xephi/authme/command/CommandConsistencyTest.java b/src/test/java/fr/xephi/authme/command/CommandConsistencyTest.java index 94a723b17..bb297268c 100644 --- a/src/test/java/fr/xephi/authme/command/CommandConsistencyTest.java +++ b/src/test/java/fr/xephi/authme/command/CommandConsistencyTest.java @@ -57,6 +57,7 @@ public class CommandConsistencyTest { * * @return collection of all base command labels */ + @SuppressWarnings("unchecked") private static Collection> initializeCommands() { AuthMeServiceInitializer injector = mock(AuthMeServiceInitializer.class); given(injector.newInstance(any(Class.class))).willAnswer(new Answer() { diff --git a/src/test/java/fr/xephi/authme/listener/ListenerServiceTest.java b/src/test/java/fr/xephi/authme/listener/ListenerServiceTest.java index c9413e17e..6b87ffe19 100644 --- a/src/test/java/fr/xephi/authme/listener/ListenerServiceTest.java +++ b/src/test/java/fr/xephi/authme/listener/ListenerServiceTest.java @@ -49,6 +49,7 @@ public class ListenerServiceTest { @Mock private PlayerCache playerCache; + @SuppressWarnings("rawtypes") @Before public void initializeTestSetup() { given(settings.getProperty(RegistrationSettings.FORCE)).willReturn(true);