Fix java 11 support

This commit is contained in:
themode 2021-03-10 01:25:01 +01:00
parent bca2434cff
commit aa29103983

View File

@ -190,7 +190,7 @@ public class CommandParser {
// Argument is supposed to take the rest of the command input // Argument is supposed to take the rest of the command input
for (int i = inputIndex; i < inputArguments.length; i++) { for (int i = inputIndex; i < inputArguments.length; i++) {
final String arg = inputArguments[i]; final String arg = inputArguments[i];
if (!builder.isEmpty()) if (builder.length() > 0)
builder.append(StringUtils.SPACE); builder.append(StringUtils.SPACE);
builder.append(arg); builder.append(arg);
} }
@ -236,7 +236,7 @@ public class CommandParser {
// rawArg should be the remaining // rawArg should be the remaining
for (int j = i + 1; j < inputArguments.length; j++) { for (int j = i + 1; j < inputArguments.length; j++) {
final String arg = inputArguments[j]; final String arg = inputArguments[j];
if (!builder.isEmpty()) if (builder.length() > 0)
builder.append(StringUtils.SPACE); builder.append(StringUtils.SPACE);
builder.append(arg); builder.append(arg);
} }