Skip to content

Commit f53ab49

Browse files
committed
Javadoc
Reduce vertical whitespace
1 parent 9c41b90 commit f53ab49

3 files changed

Lines changed: 25 additions & 25 deletions

File tree

src/main/java/org/apache/commons/cli/help/AbstractHelpFormatter.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public B setOptionGroupSeparator(final String optionGroupSeparator) {
187187
private final HelpAppendable helpAppendable;
188188

189189
/**
190-
* The OptionFormatter.Builder used to display options within the help page
190+
* The OptionFormatter.Builder used to display options within the help page.
191191
*/
192192
private final OptionFormatter.Builder optionFormatBuilder;
193193

@@ -202,7 +202,7 @@ public B setOptionGroupSeparator(final String optionGroupSeparator) {
202202
/**
203203
* Constructs the base formatter.
204204
*
205-
* @param builder the builder
205+
* @param builder the builder.
206206
*/
207207
protected AbstractHelpFormatter(final Builder<?, ?> builder) {
208208
this.helpAppendable = Objects.requireNonNull(builder.getHelpAppendable(), "helpAppendable");
@@ -286,12 +286,12 @@ public final String getSyntaxPrefix() {
286286
/**
287287
* Prints the help for a collection of {@link Option}s with the specified command line syntax.
288288
*
289-
* @param cmdLineSyntax the syntax for this application
290-
* @param header the banner to display at the beginning of the help
289+
* @param cmdLineSyntax the syntax for this application.
290+
* @param header the banner to display at the beginning of the help.
291291
* @param options the collection of {@link Option} objects to print.
292-
* @param footer the banner to display at the end of the help
293-
* @param autoUsage whether to print an automatically generated usage statement
294-
* @throws IOException If the output could not be written to the {@link HelpAppendable}
292+
* @param footer the banner to display at the end of the help.
293+
* @param autoUsage whether to print an automatically generated usage statement.
294+
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
295295
*/
296296
public void printHelp(final String cmdLineSyntax, final String header, final Iterable<Option> options, final String footer, final boolean autoUsage)
297297
throws IOException {
@@ -315,12 +315,12 @@ public void printHelp(final String cmdLineSyntax, final String header, final Ite
315315
/**
316316
* Prints the help for {@link Options} with the specified command line syntax.
317317
*
318-
* @param cmdLineSyntax the syntax for this application
319-
* @param header the banner to display at the beginning of the help
320-
* @param options the {@link Options} to print
321-
* @param footer the banner to display at the end of the help
322-
* @param autoUsage whether to print an automatically generated usage statement
323-
* @throws IOException If the output could not be written to the {@link HelpAppendable}
318+
* @param cmdLineSyntax the syntax for this application.
319+
* @param header the banner to display at the beginning of the help.
320+
* @param options the {@link Options} to print.
321+
* @param footer the banner to display at the end of the help.
322+
* @param autoUsage whether to print an automatically generated usage statement.
323+
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
324324
*/
325325
public final void printHelp(final String cmdLineSyntax, final String header, final Options options, final String footer, final boolean autoUsage)
326326
throws IOException {
@@ -331,7 +331,7 @@ public final void printHelp(final String cmdLineSyntax, final String header, fin
331331
* Prints the option table for a collection of {@link Option} objects to the {@link HelpAppendable}.
332332
*
333333
* @param options the collection of Option objects to print in the table.
334-
* @throws IOException If the output could not be written to the {@link HelpAppendable}
334+
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
335335
*/
336336
public final void printOptions(final Iterable<Option> options) throws IOException {
337337
printOptions(getTableDefinition(options));
@@ -341,7 +341,7 @@ public final void printOptions(final Iterable<Option> options) throws IOExceptio
341341
* Prints the option table for the specified {@link Options} to the {@link HelpAppendable}.
342342
*
343343
* @param options the Options to print in the table.
344-
* @throws IOException If the output could not be written to the {@link HelpAppendable}
344+
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
345345
*/
346346
public final void printOptions(final Options options) throws IOException {
347347
printOptions(options.getOptions());
@@ -351,7 +351,7 @@ public final void printOptions(final Options options) throws IOException {
351351
* Prints a {@link TableDefinition} to the {@link HelpAppendable}.
352352
*
353353
* @param tableDefinition the {@link TableDefinition} to print.
354-
* @throws IOException If the output could not be written to the {@link HelpAppendable}
354+
* @throws IOException If the output could not be written to the {@link HelpAppendable}.
355355
*/
356356
public final void printOptions(final TableDefinition tableDefinition) throws IOException {
357357
helpAppendable.appendTable(tableDefinition);
@@ -392,7 +392,7 @@ public List<Option> sort(final Options options) {
392392
}
393393

394394
/**
395-
* Formats the {@code argName} as an argument a defined in the enclosed {@link OptionFormatter.Builder}
395+
* Formats the {@code argName} as an argument a defined in the enclosed {@link OptionFormatter.Builder}.
396396
*
397397
* @param argName the string to format as an argument.
398398
* @return the {@code argName} formatted as an argument.

src/main/java/org/apache/commons/cli/help/OptionFormatter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -317,22 +317,22 @@ public static OptionFormatter from(final Option option) {
317317
*/
318318
private final String[] argNameDelimiters;
319319

320-
/** The default argument name */
320+
/** The default argument name. */
321321
private final String defaultArgName;
322322

323-
/** The function to display the deprecated option message */
323+
/** The function to display the deprecated option message. */
324324
private final Function<Option, String> deprecatedFormatFunction;
325325

326-
/** The prefix for the long option text */
326+
/** The prefix for the long option text. */
327327
private final String longOptPrefix;
328328

329-
/** The prefix for the short option text */
329+
/** The prefix for the short option text. */
330330
private final String optPrefix;
331331

332-
/** The separator between the options */
332+
/** The separator between the options. */
333333
private final String optSeparator;
334334

335-
/** the separator between the opt and/or longOpt and the argument name */
335+
/** the separator between the opt and/or longOpt and the argument name. */
336336
private final String optArgSeparator;
337337

338338
/** The delimiters for optional {@link Option}s. */
@@ -341,7 +341,7 @@ public static OptionFormatter from(final Option option) {
341341
/** The method to convert an Option formatter into a syntax notation. */
342342
private final BiFunction<OptionFormatter, Boolean, String> syntaxFormatFunction;
343343

344-
/** The {@link Option} being formatted */
344+
/** The {@link Option} being formatted. */
345345
private final Option option;
346346

347347
/**

src/main/java/org/apache/commons/cli/help/Util.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ final class Util {
3232
/**
3333
* Returns the {@code defaultValue} if {@code str} is empty.
3434
*
35-
* @param str The string to check
35+
* @param str The string to check.
3636
* @param defaultValue the default value if the string is empty.
3737
* @param <T> The type of arguments.
3838
* @return the {@code defaultValue} if {@code str} is empty,

0 commit comments

Comments
 (0)