Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/apache/commons/cli/Option.java
Original file line number Diff line number Diff line change
Expand Up @@ -721,9 +721,9 @@ public String getValue(final String defaultValue) {
}

/**
* Gets the values of this Option as a String array or an empty array if there are no values.
* Gets the values of this Option as a String array or {@code null} if there are no values.
*
* @return The values of this Option as a String array or an empty array if there are no values.
* @return The values of this Option as a String array or {@code null} if there are no values.
*/
public String[] getValues() {
return isValuesEmpty() ? null : values.toArray(EMPTY_STRING_ARRAY);
Expand Down
Loading