mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-10-31 15:49:56 +01:00
Don't use SuppressWarnings please :3
This commit is contained in:
parent
2cd7bc8512
commit
4fd8d6e0cd
@ -17,7 +17,6 @@ public class CommandArgumentDescription {
|
|||||||
* @param label The argument label.
|
* @param label The argument label.
|
||||||
* @param description The argument description.
|
* @param description The argument description.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public CommandArgumentDescription(String label, String description) {
|
public CommandArgumentDescription(String label, String description) {
|
||||||
this(label, description, false);
|
this(label, description, false);
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@ import org.bukkit.command.CommandSender;
|
|||||||
|
|
||||||
import fr.xephi.authme.util.StringUtils;
|
import fr.xephi.authme.util.StringUtils;
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public class CommandDescription {
|
public class CommandDescription {
|
||||||
|
|
||||||
/** Defines the acceptable labels. */
|
/** Defines the acceptable labels. */
|
||||||
|
@ -89,8 +89,7 @@ public class CommandHandler {
|
|||||||
*
|
*
|
||||||
* @return True if the command was executed, false otherwise.
|
* @return True if the command was executed, false otherwise.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("unused")
|
public boolean onCommand(CommandSender sender, org.bukkit.command.Command bukkitCommand, String bukkitCommandLabel, String[] bukkitArgs) {
|
||||||
public boolean onCommand(CommandSender sender, @SuppressWarnings("UnusedParameters") org.bukkit.command.Command bukkitCommand, String bukkitCommandLabel, String[] bukkitArgs) {
|
|
||||||
// Process the arguments
|
// Process the arguments
|
||||||
List<String> args = processArguments(bukkitArgs);
|
List<String> args = processArguments(bukkitArgs);
|
||||||
|
|
||||||
|
@ -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.login.LoginCommand;
|
||||||
import fr.xephi.authme.command.executable.logout.LogoutCommand;
|
import fr.xephi.authme.command.executable.logout.LogoutCommand;
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public class CommandManager {
|
public class CommandManager {
|
||||||
|
|
||||||
/** The list of commandDescriptions. */
|
/** The list of commandDescriptions. */
|
||||||
@ -52,7 +51,7 @@ public class CommandManager {
|
|||||||
/**
|
/**
|
||||||
* Register all commands.
|
* Register all commands.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings({ "SpellCheckingInspection", "serial" })
|
@SuppressWarnings({ "serial" })
|
||||||
public void registerCommands() {
|
public void registerCommands() {
|
||||||
// Register the base AuthMe Reloaded command
|
// Register the base AuthMe Reloaded command
|
||||||
CommandDescription authMeBaseCommand = new CommandDescription(
|
CommandDescription authMeBaseCommand = new CommandDescription(
|
||||||
|
@ -165,7 +165,6 @@ public class CommandParts {
|
|||||||
*
|
*
|
||||||
* @return The result from zero to above. A negative number will be returned on error.
|
* @return The result from zero to above. A negative number will be returned on error.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public double getDifference(CommandParts other) {
|
public double getDifference(CommandParts other) {
|
||||||
return getDifference(other, false);
|
return getDifference(other, false);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,6 @@ import org.bukkit.entity.Player;
|
|||||||
//import com.timvisee.dungeonmaze.permission.PermissionsManager;
|
//import com.timvisee.dungeonmaze.permission.PermissionsManager;
|
||||||
import fr.xephi.authme.AuthMe;
|
import fr.xephi.authme.AuthMe;
|
||||||
|
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public class CommandPermissions {
|
public class CommandPermissions {
|
||||||
|
|
||||||
/** Defines the permission nodes required to have permission to execute this command. */
|
/** Defines the permission nodes required to have permission to execute this command. */
|
||||||
|
@ -57,7 +57,6 @@ public class FoundCommandResult {
|
|||||||
* @param commandDescription The command description.
|
* @param commandDescription The command description.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("UnusedDeclaration")
|
|
||||||
public void setCommandDescription(CommandDescription commandDescription) {
|
public void setCommandDescription(CommandDescription commandDescription) {
|
||||||
this.commandDescription = commandDescription;
|
this.commandDescription = commandDescription;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user