From e9f274aa89550de98e0fcd119b732185790c6d64 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Tue, 15 Nov 2016 19:00:00 +0100 Subject: [PATCH] Cleanup --- src/main/java/fr/xephi/authme/service/MessageUpdater.java | 1 - .../fr/xephi/authme/datasource/AbstractResourceClosingTest.java | 2 +- .../java/fr/xephi/authme/task/LimboPlayerTaskManagerTest.java | 1 - 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/fr/xephi/authme/service/MessageUpdater.java b/src/main/java/fr/xephi/authme/service/MessageUpdater.java index 3aa5aaa62..036ad9fda 100644 --- a/src/main/java/fr/xephi/authme/service/MessageUpdater.java +++ b/src/main/java/fr/xephi/authme/service/MessageUpdater.java @@ -85,7 +85,6 @@ public class MessageUpdater { } } - @SuppressWarnings("unchecked") private void copyMissingMessages() { for (Property property : properties) { String message = userConfiguration.getString(property.getPath()); diff --git a/src/test/java/fr/xephi/authme/datasource/AbstractResourceClosingTest.java b/src/test/java/fr/xephi/authme/datasource/AbstractResourceClosingTest.java index 0b8d7bdef..35ea12e3c 100644 --- a/src/test/java/fr/xephi/authme/datasource/AbstractResourceClosingTest.java +++ b/src/test/java/fr/xephi/authme/datasource/AbstractResourceClosingTest.java @@ -98,7 +98,7 @@ public abstract class AbstractResourceClosingTest { } /** Initialize the settings mock and makes it return the default of any given property by default. */ - @SuppressWarnings("unchecked") + @SuppressWarnings({ "unchecked", "rawtypes" }) @BeforeClass public static void initializeSettings() throws IOException, ClassNotFoundException { settings = mock(Settings.class); diff --git a/src/test/java/fr/xephi/authme/task/LimboPlayerTaskManagerTest.java b/src/test/java/fr/xephi/authme/task/LimboPlayerTaskManagerTest.java index c479c3443..988011533 100644 --- a/src/test/java/fr/xephi/authme/task/LimboPlayerTaskManagerTest.java +++ b/src/test/java/fr/xephi/authme/task/LimboPlayerTaskManagerTest.java @@ -173,7 +173,6 @@ public class LimboPlayerTaskManagerTest { @Test public void shouldNotRegisterTimeoutTaskForZeroTimeout() { // given - String name = "snail"; Player player = mock(Player.class); LimboPlayer limboPlayer = mock(LimboPlayer.class); given(settings.getProperty(RestrictionSettings.TIMEOUT)).willReturn(0);