Don't use SuppressWarnings please :3

This commit is contained in:
Xephi 2015-11-02 10:25:53 +01:00
parent 2cd7bc8512
commit 4fd8d6e0cd
7 changed files with 2 additions and 9 deletions

View File

@ -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);
}

View File

@ -9,7 +9,6 @@ import org.bukkit.command.CommandSender;
import fr.xephi.authme.util.StringUtils;
@SuppressWarnings("UnusedDeclaration")
public class CommandDescription {
/** Defines the acceptable labels. */

View File

@ -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<String> args = processArguments(bukkitArgs);

View File

@ -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(

View File

@ -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);
}

View File

@ -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. */

View File

@ -57,7 +57,6 @@ public class FoundCommandResult {
* @param commandDescription The command description.
*
*/
@SuppressWarnings("UnusedDeclaration")
public void setCommandDescription(CommandDescription commandDescription) {
this.commandDescription = commandDescription;
}