diff --git a/src/main/java/fr/xephi/authme/command/CommandArgumentDescription.java b/src/main/java/fr/xephi/authme/command/CommandArgumentDescription.java index 7efede29..a5ea63d0 100644 --- a/src/main/java/fr/xephi/authme/command/CommandArgumentDescription.java +++ b/src/main/java/fr/xephi/authme/command/CommandArgumentDescription.java @@ -17,7 +17,6 @@ public class CommandArgumentDescription { * @param label The argument label. * @param description The argument description. */ - @SuppressWarnings("UnusedDeclaration") public CommandArgumentDescription(String label, String description) { this(label, description, false); } diff --git a/src/main/java/fr/xephi/authme/command/CommandDescription.java b/src/main/java/fr/xephi/authme/command/CommandDescription.java index be635d42..302a6e6c 100644 --- a/src/main/java/fr/xephi/authme/command/CommandDescription.java +++ b/src/main/java/fr/xephi/authme/command/CommandDescription.java @@ -9,7 +9,6 @@ import org.bukkit.command.CommandSender; import fr.xephi.authme.util.StringUtils; -@SuppressWarnings("UnusedDeclaration") public class CommandDescription { /** Defines the acceptable labels. */ diff --git a/src/main/java/fr/xephi/authme/command/CommandHandler.java b/src/main/java/fr/xephi/authme/command/CommandHandler.java index f11ced44..063f8935 100644 --- a/src/main/java/fr/xephi/authme/command/CommandHandler.java +++ b/src/main/java/fr/xephi/authme/command/CommandHandler.java @@ -89,8 +89,7 @@ public class CommandHandler { * * @return True if the command was executed, false otherwise. */ - @SuppressWarnings("unused") - public boolean onCommand(CommandSender sender, @SuppressWarnings("UnusedParameters") org.bukkit.command.Command bukkitCommand, String bukkitCommandLabel, String[] bukkitArgs) { + public boolean onCommand(CommandSender sender, org.bukkit.command.Command bukkitCommand, String bukkitCommandLabel, String[] bukkitArgs) { // Process the arguments List args = processArguments(bukkitArgs); diff --git a/src/main/java/fr/xephi/authme/command/CommandManager.java b/src/main/java/fr/xephi/authme/command/CommandManager.java index 694fd780..83aa4c43 100644 --- a/src/main/java/fr/xephi/authme/command/CommandManager.java +++ b/src/main/java/fr/xephi/authme/command/CommandManager.java @@ -32,7 +32,6 @@ import fr.xephi.authme.command.executable.email.RecoverEmailCommand; import fr.xephi.authme.command.executable.login.LoginCommand; import fr.xephi.authme.command.executable.logout.LogoutCommand; -@SuppressWarnings("UnusedDeclaration") public class CommandManager { /** The list of commandDescriptions. */ @@ -52,7 +51,7 @@ public class CommandManager { /** * Register all commands. */ - @SuppressWarnings({ "SpellCheckingInspection", "serial" }) + @SuppressWarnings({ "serial" }) public void registerCommands() { // Register the base AuthMe Reloaded command CommandDescription authMeBaseCommand = new CommandDescription( diff --git a/src/main/java/fr/xephi/authme/command/CommandParts.java b/src/main/java/fr/xephi/authme/command/CommandParts.java index 732e9199..6e833482 100644 --- a/src/main/java/fr/xephi/authme/command/CommandParts.java +++ b/src/main/java/fr/xephi/authme/command/CommandParts.java @@ -165,7 +165,6 @@ public class CommandParts { * * @return The result from zero to above. A negative number will be returned on error. */ - @SuppressWarnings("UnusedDeclaration") public double getDifference(CommandParts other) { return getDifference(other, false); } diff --git a/src/main/java/fr/xephi/authme/command/CommandPermissions.java b/src/main/java/fr/xephi/authme/command/CommandPermissions.java index 7628ea44..89007835 100644 --- a/src/main/java/fr/xephi/authme/command/CommandPermissions.java +++ b/src/main/java/fr/xephi/authme/command/CommandPermissions.java @@ -10,7 +10,6 @@ import org.bukkit.entity.Player; //import com.timvisee.dungeonmaze.permission.PermissionsManager; import fr.xephi.authme.AuthMe; -@SuppressWarnings("UnusedDeclaration") public class CommandPermissions { /** Defines the permission nodes required to have permission to execute this command. */ diff --git a/src/main/java/fr/xephi/authme/command/FoundCommandResult.java b/src/main/java/fr/xephi/authme/command/FoundCommandResult.java index e959325a..207cf8dc 100644 --- a/src/main/java/fr/xephi/authme/command/FoundCommandResult.java +++ b/src/main/java/fr/xephi/authme/command/FoundCommandResult.java @@ -57,7 +57,6 @@ public class FoundCommandResult { * @param commandDescription The command description. * */ - @SuppressWarnings("UnusedDeclaration") public void setCommandDescription(CommandDescription commandDescription) { this.commandDescription = commandDescription; }