Skip to content

Commit c309ad2

Browse files
committed
[#2026][#2027] replace Java 6 API with Java 5 API
1 parent b42fb05 commit c309ad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/picocli/CommandLine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18711,7 +18711,7 @@ private static String str(List<String> list) {
1871118711
private List<String> prefixCommandName(List<String> suggestions)
1871218712
{
1871318713
String commandName = this.commandLine.commandSpec.name;
18714-
if(commandName == null || commandName.trim().isEmpty()) { return suggestions; }
18714+
if(commandName == null || commandName.trim().length() == 0) { return suggestions; }
1871518715
List<String> prefixedSuggestions = new ArrayList<String>();
1871618716
for (String s : suggestions) {
1871718717
prefixedSuggestions.add(commandName + " " + s);

0 commit comments

Comments
 (0)