Fix build failure

pull/19476/head
Stephane Nicoll 5 years ago
parent a2b2b46b83
commit 08ac72f5f0

@ -17,7 +17,6 @@
package org.springframework.boot.cli.command.core; package org.springframework.boot.cli.command.core;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
@ -49,7 +48,9 @@ public class HintCommand extends AbstractCommand {
try { try {
int index = (args.length != 0) ? Integer.parseInt(args[0]) - 1 : 0; int index = (args.length != 0) ? Integer.parseInt(args[0]) - 1 : 0;
List<String> arguments = new ArrayList<>(args.length); List<String> arguments = new ArrayList<>(args.length);
arguments.addAll(Arrays.asList(args).subList(2, args.length)); for (int i = 2; i < args.length; i++) {
arguments.add(args[i]);
}
String starting = ""; String starting = "";
if (index < arguments.size()) { if (index < arguments.size()) {
starting = arguments.remove(index); starting = arguments.remove(index);

Loading…
Cancel
Save