Remove redundant SuppressWarnings
@@ -148,7 +148,6 @@ private boolean parseLongFlag(CommandSource source, String longFlag, CommandArgs
return true;
}
- @SuppressWarnings("fallthrough")
private boolean parseShortFlags(CommandSource source, String shortFlags, CommandArgs args, CommandContext context) throws ArgumentParseException {
for (int i = 0; i < shortFlags.length(); ++i) {
final String flagChar = shortFlags.substring(i, i + 1);
@@ -438,7 +437,6 @@ public CommandElement apply(@Nullable String input) {
* @param specs The flag specifications
* @return this
*/
- @SuppressWarnings({"unchecked", "rawtypes"}) // cuz generics suck
public Builder valueFlag(CommandElement value, String... specs) {
return flag(ignore -> value, specs);
}
