diff --git a/src/main/java/com/shweit/pollmaster/commands/VersionCommand.java b/src/main/java/com/shweit/pollmaster/commands/VersionCommand.java index 301b9f3..8557b74 100644 --- a/src/main/java/com/shweit/pollmaster/commands/VersionCommand.java +++ b/src/main/java/com/shweit/pollmaster/commands/VersionCommand.java @@ -12,7 +12,7 @@ import java.util.ArrayList; import java.util.List; -public class VersionCommand implements CommandExecutor, TabExecutor { +public final class VersionCommand implements CommandExecutor, TabExecutor { @Override public boolean onCommand(final CommandSender commandSender, final Command command, final String s, final String[] args) { @@ -36,9 +36,10 @@ public boolean onCommand(final CommandSender commandSender, final Command comman } return true; - } - return false; + default: + return false; + } } @Override diff --git a/src/main/java/com/shweit/pollmaster/utils/CheckForUpdate.java b/src/main/java/com/shweit/pollmaster/utils/CheckForUpdate.java index 2a7b4ab..32933a9 100644 --- a/src/main/java/com/shweit/pollmaster/utils/CheckForUpdate.java +++ b/src/main/java/com/shweit/pollmaster/utils/CheckForUpdate.java @@ -81,4 +81,4 @@ private String fetchLatestVersion() { return null; } } -} \ No newline at end of file +}