From 668eec641e315b402ed5297df2948f008f0d1adb Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Wed, 19 Feb 2020 12:45:59 +1300 Subject: [PATCH] Clean up imports --- src/main/java/me/libraryaddict/disguise/DisguiseAPI.java | 1 - .../disguise/disguisetypes/LibsEquipment.java | 2 -- .../libraryaddict/disguise/disguisetypes/MobDisguise.java | 2 -- .../disguise/disguisetypes/PlayerDisguise.java | 3 --- .../disguisetypes/watchers/AreaEffectCloudWatcher.java | 2 -- .../disguise/disguisetypes/watchers/FishWatcher.java | 1 - .../disguise/disguisetypes/watchers/PlayerWatcher.java | 2 -- .../me/libraryaddict/disguise/utilities/DisguiseSound.java | 1 - .../me/libraryaddict/disguise/utilities/SkinUtils.java | 1 - .../disguise/utilities/json/SerializerDisguise.java | 1 - .../disguise/utilities/json/SerializerFlagWatcher.java | 7 ------- .../disguise/utilities/json/SerializerGameProfile.java | 1 - .../disguise/utilities/json/SerializerItemStack.java | 3 --- .../disguise/utilities/json/SerializerMetaIndex.java | 2 -- .../utilities/json/SerializerWrappedBlockData.java | 2 -- .../disguise/utilities/metrics/MetricsInitalizer.java | 1 - .../disguise/utilities/mineskin/MineSkinResponse.java | 1 - .../packets/packethandlers/PacketHandlerAnimation.java | 2 -- .../packets/packethandlers/PacketHandlerCollect.java | 3 --- .../packets/packethandlers/PacketHandlerEquipment.java | 1 - .../packetlisteners/PacketListenerClientInteract.java | 3 --- .../packets/packetlisteners/PacketListenerMain.java | 1 - .../packetlisteners/PacketListenerViewSelfDisguise.java | 1 - .../disguise/utilities/plugin/PluginInformation.java | 2 -- .../disguise/utilities/reflection/ClassGetter.java | 6 ------ .../disguise/disguisetypes/DisguiseCloneTest.java | 4 ---- 26 files changed, 56 deletions(-) diff --git a/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java b/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java index fb9a1668..a2ca5c42 100644 --- a/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java +++ b/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java @@ -4,7 +4,6 @@ import com.comphenix.protocol.wrappers.WrappedGameProfile; import me.libraryaddict.disguise.disguisetypes.*; import me.libraryaddict.disguise.disguisetypes.TargetedDisguise.TargetType; import me.libraryaddict.disguise.disguisetypes.watchers.AbstractHorseWatcher; -import me.libraryaddict.disguise.disguisetypes.watchers.HorseWatcher; import me.libraryaddict.disguise.disguisetypes.watchers.LivingWatcher; import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.parser.DisguiseParseException; diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/LibsEquipment.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/LibsEquipment.java index 0b0e1f1c..93dd9682 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/LibsEquipment.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/LibsEquipment.java @@ -6,8 +6,6 @@ import org.bukkit.inventory.EntityEquipment; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; -import java.io.Serializable; - public class LibsEquipment implements EntityEquipment { private ItemStack[] equipment = new ItemStack[EquipmentSlot.values().length]; private transient FlagWatcher flagWatcher; diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/MobDisguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/MobDisguise.java index fa9ebe55..091e0e1b 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/MobDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/MobDisguise.java @@ -9,8 +9,6 @@ import org.bukkit.entity.Entity; import org.bukkit.entity.Player; import java.security.InvalidParameterException; -import java.util.Date; -import java.util.concurrent.TimeUnit; public class MobDisguise extends TargetedDisguise { private boolean isAdult; diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java index a33e006a..ddeed841 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/PlayerDisguise.java @@ -17,7 +17,6 @@ import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.LibsPremium; import me.libraryaddict.disguise.utilities.reflection.LibsProfileLookup; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; -import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.Validate; import org.bukkit.Bukkit; import org.bukkit.entity.Entity; @@ -26,9 +25,7 @@ import org.bukkit.scheduler.BukkitRunnable; import java.lang.reflect.InvocationTargetException; import java.util.Arrays; -import java.util.Date; import java.util.UUID; -import java.util.concurrent.TimeUnit; public class PlayerDisguise extends TargetedDisguise { private transient LibsProfileLookup currentLookup; diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java index 43fb62e2..ca6c1f46 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/AreaEffectCloudWatcher.java @@ -1,6 +1,5 @@ package me.libraryaddict.disguise.disguisetypes.watchers; -import com.comphenix.protocol.wrappers.WrappedBlockData; import com.comphenix.protocol.wrappers.WrappedParticle; import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.FlagWatcher; @@ -10,7 +9,6 @@ import me.libraryaddict.disguise.utilities.reflection.NmsAddedIn; import me.libraryaddict.disguise.utilities.reflection.NmsVersion; import org.apache.commons.lang.math.RandomUtils; import org.bukkit.Color; -import org.bukkit.Material; import org.bukkit.Particle; /** diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/FishWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/FishWatcher.java index c9ac3ded..86225776 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/FishWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/FishWatcher.java @@ -1,7 +1,6 @@ package me.libraryaddict.disguise.disguisetypes.watchers; import me.libraryaddict.disguise.disguisetypes.Disguise; -import me.libraryaddict.disguise.disguisetypes.MetaIndex; /** * Created by libraryaddict on 6/08/2018. diff --git a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java index a3e9fbfe..ef5d3374 100644 --- a/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/disguisetypes/watchers/PlayerWatcher.java @@ -1,8 +1,6 @@ package me.libraryaddict.disguise.disguisetypes.watchers; import com.comphenix.protocol.wrappers.WrappedGameProfile; -import com.google.gson.Gson; -import com.mojang.authlib.GameProfile; import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.MetaIndex; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java index fbe4feca..5ceda717 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/DisguiseSound.java @@ -1,6 +1,5 @@ package me.libraryaddict.disguise.utilities; -import com.google.gson.Gson; import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import org.bukkit.Sound; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/SkinUtils.java b/src/main/java/me/libraryaddict/disguise/utilities/SkinUtils.java index c5d9626f..eadfcaf3 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/SkinUtils.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/SkinUtils.java @@ -4,7 +4,6 @@ import com.comphenix.protocol.wrappers.WrappedGameProfile; import com.mojang.authlib.GameProfile; import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.utilities.mineskin.MineSkinResponse; -import me.libraryaddict.disguise.utilities.parser.DisguiseParseException; import me.libraryaddict.disguise.utilities.reflection.LibsProfileLookup; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import me.libraryaddict.disguise.utilities.translations.LibsMsg; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerDisguise.java b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerDisguise.java index e0eabab2..4edd84ab 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerDisguise.java @@ -3,7 +3,6 @@ package me.libraryaddict.disguise.utilities.json; import com.google.gson.*; import me.libraryaddict.disguise.disguisetypes.*; -import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Type; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerFlagWatcher.java b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerFlagWatcher.java index cf52bd38..9efdf45c 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerFlagWatcher.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerFlagWatcher.java @@ -1,16 +1,9 @@ package me.libraryaddict.disguise.utilities.json; -import com.comphenix.protocol.wrappers.WrappedBlockData; -import com.comphenix.protocol.wrappers.WrappedChatComponent; -import com.comphenix.protocol.wrappers.WrappedDataWatcher; -import com.comphenix.protocol.wrappers.WrappedGameProfile; import com.google.gson.*; import com.google.gson.internal.LinkedTreeMap; -import com.mojang.authlib.properties.PropertyMap; import me.libraryaddict.disguise.disguisetypes.*; import me.libraryaddict.disguise.utilities.DisguiseUtilities; -import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; -import org.bukkit.inventory.ItemStack; import java.lang.reflect.Field; import java.lang.reflect.Method; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerGameProfile.java b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerGameProfile.java index 94f63dc4..452e3698 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerGameProfile.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerGameProfile.java @@ -5,7 +5,6 @@ import com.google.gson.*; import com.mojang.authlib.GameProfile; import java.lang.reflect.Type; -import java.util.HashMap; import java.util.regex.Pattern; /** diff --git a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerItemStack.java b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerItemStack.java index f229df6a..4a147c90 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerItemStack.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerItemStack.java @@ -1,8 +1,6 @@ package me.libraryaddict.disguise.utilities.json; -import com.comphenix.protocol.wrappers.WrappedGameProfile; import com.google.gson.*; -import com.mojang.authlib.GameProfile; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; @@ -10,7 +8,6 @@ import org.bukkit.inventory.meta.ItemMeta; import java.lang.reflect.Type; import java.util.HashMap; import java.util.Map; -import java.util.regex.Pattern; /** * Created by libraryaddict on 1/06/2017. diff --git a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerMetaIndex.java b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerMetaIndex.java index 09dbf4aa..5e59084a 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerMetaIndex.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerMetaIndex.java @@ -1,8 +1,6 @@ package me.libraryaddict.disguise.utilities.json; -import com.comphenix.protocol.wrappers.WrappedGameProfile; import com.google.gson.*; -import com.mojang.authlib.GameProfile; import me.libraryaddict.disguise.disguisetypes.MetaIndex; import java.lang.reflect.Type; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerWrappedBlockData.java b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerWrappedBlockData.java index 012ba398..602a5d06 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerWrappedBlockData.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/json/SerializerWrappedBlockData.java @@ -1,9 +1,7 @@ package me.libraryaddict.disguise.utilities.json; import com.comphenix.protocol.wrappers.WrappedBlockData; -import com.comphenix.protocol.wrappers.WrappedGameProfile; import com.google.gson.*; -import com.mojang.authlib.GameProfile; import org.bukkit.Material; import java.lang.reflect.Type; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java b/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java index e2aa8da4..bb87cda0 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/metrics/MetricsInitalizer.java @@ -10,7 +10,6 @@ import me.libraryaddict.disguise.utilities.plugin.PluginInformation; import java.util.Collection; import java.util.HashMap; -import java.util.HashSet; import java.util.Set; /** diff --git a/src/main/java/me/libraryaddict/disguise/utilities/mineskin/MineSkinResponse.java b/src/main/java/me/libraryaddict/disguise/utilities/mineskin/MineSkinResponse.java index ce0d95ac..095422d2 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/mineskin/MineSkinResponse.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/mineskin/MineSkinResponse.java @@ -5,7 +5,6 @@ import com.mojang.authlib.GameProfile; import com.mojang.authlib.properties.Property; import org.apache.commons.lang.StringUtils; -import java.lang.reflect.Field; import java.util.Map; import java.util.UUID; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerAnimation.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerAnimation.java index 5744252b..3ad5bb18 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerAnimation.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerAnimation.java @@ -2,9 +2,7 @@ package me.libraryaddict.disguise.utilities.packets.packethandlers; import com.comphenix.protocol.PacketType; import com.comphenix.protocol.events.PacketContainer; -import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.disguisetypes.Disguise; -import me.libraryaddict.disguise.disguisetypes.watchers.PlayerWatcher; import me.libraryaddict.disguise.utilities.packets.IPacketHandler; import me.libraryaddict.disguise.utilities.packets.LibsPackets; import org.bukkit.entity.Entity; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerCollect.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerCollect.java index 0586b5d5..c93425f9 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerCollect.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerCollect.java @@ -2,10 +2,7 @@ package me.libraryaddict.disguise.utilities.packets.packethandlers; import com.comphenix.protocol.PacketType; import com.comphenix.protocol.events.PacketContainer; -import com.comphenix.protocol.reflect.StructureModifier; -import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.disguisetypes.Disguise; -import me.libraryaddict.disguise.disguisetypes.watchers.PlayerWatcher; import me.libraryaddict.disguise.utilities.packets.IPacketHandler; import me.libraryaddict.disguise.utilities.packets.LibsPackets; import org.bukkit.entity.Entity; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerEquipment.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerEquipment.java index f7993ce6..17f2b9b6 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerEquipment.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packethandlers/PacketHandlerEquipment.java @@ -7,7 +7,6 @@ import com.comphenix.protocol.wrappers.WrappedWatchableObject; import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.disguisetypes.Disguise; import me.libraryaddict.disguise.disguisetypes.MetaIndex; -import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.packets.IPacketHandler; import me.libraryaddict.disguise.utilities.packets.LibsPackets; import me.libraryaddict.disguise.utilities.packets.PacketsHandler; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientInteract.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientInteract.java index 5dad968e..d7b9d6b8 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientInteract.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerClientInteract.java @@ -5,9 +5,7 @@ import com.comphenix.protocol.events.ListenerPriority; import com.comphenix.protocol.events.PacketAdapter; import com.comphenix.protocol.events.PacketContainer; import com.comphenix.protocol.events.PacketEvent; -import com.comphenix.protocol.reflect.StructureModifier; import com.comphenix.protocol.wrappers.EnumWrappers; -import me.libraryaddict.disguise.DisguiseAPI; import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.disguisetypes.AnimalColor; @@ -22,7 +20,6 @@ import org.bukkit.Material; import org.bukkit.entity.*; import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; -import org.bukkit.material.Wool; import org.bukkit.scheduler.BukkitRunnable; public class PacketListenerClientInteract extends PacketAdapter { diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerMain.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerMain.java index 8f9ac54f..8da6f903 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerMain.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerMain.java @@ -9,7 +9,6 @@ import com.comphenix.protocol.events.PacketContainer; import com.comphenix.protocol.events.PacketEvent; import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.disguisetypes.Disguise; -import me.libraryaddict.disguise.disguisetypes.DisguiseType; import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.packets.LibsPackets; import me.libraryaddict.disguise.utilities.packets.PacketsManager; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java index b84ec41b..93b20d47 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerViewSelfDisguise.java @@ -12,7 +12,6 @@ import com.comphenix.protocol.wrappers.WrappedWatchableObject; import me.libraryaddict.disguise.DisguiseAPI; import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.disguisetypes.Disguise; -import me.libraryaddict.disguise.disguisetypes.DisguiseType; import me.libraryaddict.disguise.disguisetypes.MetaIndex; import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.LibsPremium; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/plugin/PluginInformation.java b/src/main/java/me/libraryaddict/disguise/utilities/plugin/PluginInformation.java index b9725d79..13c999cf 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/plugin/PluginInformation.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/plugin/PluginInformation.java @@ -1,7 +1,5 @@ package me.libraryaddict.disguise.utilities.plugin; -import me.libraryaddict.disguise.utilities.LibsPremium; - import java.text.SimpleDateFormat; import java.util.Date; diff --git a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java index e3820540..1f23f419 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/reflection/ClassGetter.java @@ -3,13 +3,7 @@ package me.libraryaddict.disguise.utilities.reflection; import org.bukkit.entity.Entity; import java.io.File; -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; -import java.net.MalformedURLException; import java.net.URL; -import java.net.URLClassLoader; import java.net.URLDecoder; import java.security.CodeSource; import java.util.ArrayList; diff --git a/src/test/java/me/libraryaddict/disguise/disguisetypes/DisguiseCloneTest.java b/src/test/java/me/libraryaddict/disguise/disguisetypes/DisguiseCloneTest.java index eaa5a1b2..01743245 100644 --- a/src/test/java/me/libraryaddict/disguise/disguisetypes/DisguiseCloneTest.java +++ b/src/test/java/me/libraryaddict/disguise/disguisetypes/DisguiseCloneTest.java @@ -1,18 +1,14 @@ package me.libraryaddict.disguise.disguisetypes; -import me.libraryaddict.disguise.LibsDisguises; import me.libraryaddict.disguise.utilities.DisguiseUtilities; import me.libraryaddict.disguise.utilities.parser.DisguiseParser; import me.libraryaddict.disguise.utilities.reflection.ReflectionManager; import org.bukkit.Material; -import org.bukkit.entity.EntityType; import org.bukkit.inventory.ItemStack; import org.junit.Assert; -import org.junit.Test; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -import java.util.Enumeration; import java.util.Map; /**