Skip to content

Commit

Permalink
[#2026][#2027] replace Java 6 API with Java 5 API
Browse files Browse the repository at this point in the history
  • Loading branch information
remkop committed Jun 3, 2023
1 parent b42fb05 commit c309ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/picocli/CommandLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -18711,7 +18711,7 @@ private static String str(List<String> list) {
private List<String> prefixCommandName(List<String> suggestions)
{
String commandName = this.commandLine.commandSpec.name;
if(commandName == null || commandName.trim().isEmpty()) { return suggestions; }
if(commandName == null || commandName.trim().length() == 0) { return suggestions; }
List<String> prefixedSuggestions = new ArrayList<String>();
for (String s : suggestions) {
prefixedSuggestions.add(commandName + " " + s);
Expand Down

0 comments on commit c309ad2

Please sign in to comment.