Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasDeBruijn committed Jan 11, 2022
1 parent fbaab99 commit 198bdaa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@CommandInfo(name = "help", description = "Get information about the commands SkinFixer has and how to use them")
public class HelpCommand implements Subcommand {

private HashMap<String, String> helpMessages;
private final HashMap<String, String> helpMessages;
public HelpCommand(HashMap<String, String> helpMessages) {
this.helpMessages = helpMessages;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void onSubcommand(SkinFixer plugin, CommandSender sender, String[] args)
slim = true;
}

int code = Integer.valueOf(args[0]);
int code = Integer.parseInt(args[0]);
Player p = (Player) sender;
SkinChangeHandler sck = new SkinChangeHandler(plugin);

Expand Down Expand Up @@ -76,7 +76,7 @@ private boolean isValidInt(String s) {
}

BigInteger bi = new BigInteger(s);
if(bi.compareTo(BigInteger.valueOf((long) Integer.MAX_VALUE)) > 0) {
if(bi.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) > 0) {
return false;
}

Expand Down

0 comments on commit 198bdaa

Please sign in to comment.