From c6fc42846a2632dc74824c05d06ea40c951c6283 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 5 Feb 2023 10:15:34 -0800 Subject: [PATCH] Remove unused imports --- .../bentobox/api/panels/reader/ItemTemplateRecord.java | 2 ++ .../bentobox/api/panels/reader/PanelTemplateRecord.java | 1 + .../listeners/flags/protection/EntityInteractListener.java | 1 - .../listeners/flags/protection/InventoryListener.java | 1 - .../listeners/flags/protection/SculkSensorListener.java | 1 - .../listeners/flags/protection/SculkShriekerListener.java | 1 - .../bentobox/bentobox/api/addons/AddonClassLoaderTest.java | 3 --- .../java/world/bentobox/bentobox/api/user/UserTest.java | 6 +++++- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/java/world/bentobox/bentobox/api/panels/reader/ItemTemplateRecord.java b/src/main/java/world/bentobox/bentobox/api/panels/reader/ItemTemplateRecord.java index e5911c802..c1c157124 100644 --- a/src/main/java/world/bentobox/bentobox/api/panels/reader/ItemTemplateRecord.java +++ b/src/main/java/world/bentobox/bentobox/api/panels/reader/ItemTemplateRecord.java @@ -17,6 +17,8 @@ import org.bukkit.inventory.ItemStack; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; +import world.bentobox.bentobox.api.panels.reader.ItemTemplateRecord.ActionRecords; + /** * This Record contains all necessary information about Item Template that can be used to craft panel item. * diff --git a/src/main/java/world/bentobox/bentobox/api/panels/reader/PanelTemplateRecord.java b/src/main/java/world/bentobox/bentobox/api/panels/reader/PanelTemplateRecord.java index f260fb564..18d5506f1 100644 --- a/src/main/java/world/bentobox/bentobox/api/panels/reader/PanelTemplateRecord.java +++ b/src/main/java/world/bentobox/bentobox/api/panels/reader/PanelTemplateRecord.java @@ -15,6 +15,7 @@ import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import world.bentobox.bentobox.api.panels.Panel; +import world.bentobox.bentobox.api.panels.reader.PanelTemplateRecord.TemplateItem; /** * This is template object for the panel reader. It contains data that can exist in the panel. diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/EntityInteractListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/EntityInteractListener.java index 8aa32989e..2d27c69e8 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/EntityInteractListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/EntityInteractListener.java @@ -22,7 +22,6 @@ import org.bukkit.event.player.PlayerInteractEntityEvent; import world.bentobox.bentobox.api.flags.FlagListener; import world.bentobox.bentobox.lists.Flags; -import world.bentobox.bentobox.versions.ServerCompatibility; /** diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/InventoryListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/InventoryListener.java index 54117f6dd..3dfe3b6ab 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/InventoryListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/InventoryListener.java @@ -26,7 +26,6 @@ import org.bukkit.inventory.InventoryHolder; import world.bentobox.bentobox.api.flags.FlagListener; import world.bentobox.bentobox.lists.Flags; -import world.bentobox.bentobox.versions.ServerCompatibility; /** diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkSensorListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkSensorListener.java index 3c707b66f..f40a07ea4 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkSensorListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkSensorListener.java @@ -15,7 +15,6 @@ import org.bukkit.event.block.BlockReceiveGameEvent; import world.bentobox.bentobox.api.flags.FlagListener; import world.bentobox.bentobox.lists.Flags; -import world.bentobox.bentobox.versions.ServerCompatibility; /** diff --git a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkShriekerListener.java b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkShriekerListener.java index 075731cd3..e5a1b2827 100644 --- a/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkShriekerListener.java +++ b/src/main/java/world/bentobox/bentobox/listeners/flags/protection/SculkShriekerListener.java @@ -15,7 +15,6 @@ import org.bukkit.event.block.BlockReceiveGameEvent; import world.bentobox.bentobox.api.flags.FlagListener; import world.bentobox.bentobox.lists.Flags; -import world.bentobox.bentobox.versions.ServerCompatibility; /** diff --git a/src/test/java/world/bentobox/bentobox/api/addons/AddonClassLoaderTest.java b/src/test/java/world/bentobox/bentobox/api/addons/AddonClassLoaderTest.java index 4102b9ee2..8a501b652 100644 --- a/src/test/java/world/bentobox/bentobox/api/addons/AddonClassLoaderTest.java +++ b/src/test/java/world/bentobox/bentobox/api/addons/AddonClassLoaderTest.java @@ -4,7 +4,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; -import static org.junit.Assert.fail; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -25,10 +24,8 @@ import java.util.jar.Manifest; import org.bukkit.Bukkit; import org.bukkit.Material; -import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.file.YamlConfiguration; import org.eclipse.jdt.annotation.NonNull; -import org.eclipse.jdt.annotation.Nullable; import org.junit.After; import org.junit.Before; import org.junit.Test; diff --git a/src/test/java/world/bentobox/bentobox/api/user/UserTest.java b/src/test/java/world/bentobox/bentobox/api/user/UserTest.java index 60c77ff00..4a487410d 100644 --- a/src/test/java/world/bentobox/bentobox/api/user/UserTest.java +++ b/src/test/java/world/bentobox/bentobox/api/user/UserTest.java @@ -1,6 +1,10 @@ package world.bentobox.bentobox.api.user; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotEquals; +import static org.junit.Assert.assertNotNull; +import static org.junit.Assert.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.ArgumentMatchers.eq;