Skip to content

Commit f0677c6

Browse files
committed
Make CheckStyle happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1786144 13f79535-47bb-0310-9956-ffa450edef68
1 parent ace721e commit f0677c6

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

src/main/java/org/apache/commons/cli/CommandLine.java

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,27 +386,34 @@ public Option[] getOptions()
386386
*/
387387
public static final class Builder
388388
{
389+
/**
390+
* CommandLine that is being build by this Builder.
391+
*/
389392
private final CommandLine commandLine = new CommandLine();
390393

391394
/**
392395
* Add an option to the command line. The values of the option are stored.
393396
*
394397
* @param opt the processed option
398+
*
399+
* @return this Builder instance for method chaining.
395400
*/
396-
public Builder addOption( Option opt )
401+
public Builder addOption(Option opt)
397402
{
398-
commandLine.addOption( opt );
403+
commandLine.addOption(opt);
399404
return this;
400405
}
401406

402407
/**
403408
* Add left-over unrecognized option/argument.
404409
*
405410
* @param arg the unrecognized option/argument.
411+
*
412+
* @return this Builder instance for method chaining.
406413
*/
407-
public Builder addArg( String arg )
414+
public Builder addArg(String arg)
408415
{
409-
commandLine.addArg( arg );
416+
commandLine.addArg(arg);
410417
return this;
411418
}
412419

0 commit comments

Comments
 (0)