From 5271e76b75b56c6aaa2b642fefd1f025a1eff350 Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Sat, 27 Jun 2020 03:45:11 +0200 Subject: [PATCH] Cleanup (2/?) --- .idea/misc.xml | 3 ++- .../persistence/DistributedFilesPersistenceHandlerTest.java | 2 -- src/test/java/fr/xephi/authme/settings/SpawnLoaderTest.java | 2 -- .../authme/settings/commandconfig/CommandManagerTest.java | 3 ++- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index b45dc4b5c..b9cd73845 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,9 +1,10 @@ - + + diff --git a/src/test/java/fr/xephi/authme/data/limbo/persistence/DistributedFilesPersistenceHandlerTest.java b/src/test/java/fr/xephi/authme/data/limbo/persistence/DistributedFilesPersistenceHandlerTest.java index d4ef8e01d..bd55d5cd4 100644 --- a/src/test/java/fr/xephi/authme/data/limbo/persistence/DistributedFilesPersistenceHandlerTest.java +++ b/src/test/java/fr/xephi/authme/data/limbo/persistence/DistributedFilesPersistenceHandlerTest.java @@ -74,8 +74,6 @@ public class DistributedFilesPersistenceHandlerTest { /** UUID for which no data is stored (belongs to an existing segment file: seg16-8). */ private static final UUID UNKNOWN_UUID2 = fromString("84d1cc0b-8f12-d04a-e7ba-a067d05cdc39"); - - @SuppressWarnings("unused") @InjectDelayed private DistributedFilesPersistenceHandler persistenceHandler; diff --git a/src/test/java/fr/xephi/authme/settings/SpawnLoaderTest.java b/src/test/java/fr/xephi/authme/settings/SpawnLoaderTest.java index 1dbe0db24..dbec4e444 100644 --- a/src/test/java/fr/xephi/authme/settings/SpawnLoaderTest.java +++ b/src/test/java/fr/xephi/authme/settings/SpawnLoaderTest.java @@ -32,14 +32,12 @@ import static org.mockito.Mockito.mock; @RunWith(DelayedInjectionRunner.class) public class SpawnLoaderTest { - @SuppressWarnings("unused") @InjectDelayed private SpawnLoader spawnLoader; @Mock private Settings settings; - @SuppressWarnings("unused") @Mock private PluginHookService pluginHookService; diff --git a/src/test/java/fr/xephi/authme/settings/commandconfig/CommandManagerTest.java b/src/test/java/fr/xephi/authme/settings/commandconfig/CommandManagerTest.java index ef492b7bc..0731b486b 100644 --- a/src/test/java/fr/xephi/authme/settings/commandconfig/CommandManagerTest.java +++ b/src/test/java/fr/xephi/authme/settings/commandconfig/CommandManagerTest.java @@ -48,9 +48,10 @@ public class CommandManagerTest { @Mock private BukkitService bukkitService; + @Mock private GeoIpService geoIpService; - @SuppressWarnings("unused") + @Mock private SettingsMigrationService settingsMigrationService;