You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by br...@apache.org on 2017/03/09 11:34:57 UTC

svn commit: r1786144 - /commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java

Author: britter
Date: Thu Mar  9 11:34:57 2017
New Revision: 1786144

URL: http://svn.apache.org/viewvc?rev=1786144&view=rev
Log:
Make CheckStyle happy

Modified:
    commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java

Modified: commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java
URL: http://svn.apache.org/viewvc/commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java?rev=1786144&r1=1786143&r2=1786144&view=diff
==============================================================================
--- commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java (original)
+++ commons/proper/cli/trunk/src/main/java/org/apache/commons/cli/CommandLine.java Thu Mar  9 11:34:57 2017
@@ -386,16 +386,21 @@ public class CommandLine implements Seri
      */
     public static final class Builder
     {
+        /**
+         * CommandLine that is being build by this Builder.
+         */
         private final CommandLine commandLine = new CommandLine();
 
         /**
          * Add an option to the command line. The values of the option are stored.
          *
          * @param opt the processed option
+         *
+         * @return this Builder instance for method chaining.
          */
-        public Builder addOption( Option opt )
+        public Builder addOption(Option opt)
         {
-            commandLine.addOption( opt );
+            commandLine.addOption(opt);
             return this;
         }
 
@@ -403,10 +408,12 @@ public class CommandLine implements Seri
          * Add left-over unrecognized option/argument.
          *
          * @param arg the unrecognized option/argument.
+         *
+         * @return this Builder instance for method chaining.
          */
-        public Builder addArg( String arg )
+        public Builder addArg(String arg)
         {
-            commandLine.addArg( arg );
+            commandLine.addArg(arg);
             return this;
         }