Changed Array Listing to Linked Listing

This commit is contained in:
Logan Abernathy 2023-06-04 03:00:20 -07:00 committed by GitHub
parent b949fa2f4d
commit 5871680417
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -501,7 +501,7 @@ public class CommandDispatcher<S> {
final String usage = getSmartUsage(children.get(0), source, childOptional, childOptional);
if (usage != null) return self + ARGUMENT_SEPARATOR + usage;
} else if (children.size() > 1) {
final List<String> childUsage = new ArrayList<>();
final LinkedList<String> childUsage = new LinkedList<>();
for (final CommandNode<S> child : children) {
final String usage = getSmartUsage(child, source, childOptional, true);
if (usage != null) childUsage.add(usage);