File tree Expand file tree Collapse file tree
src/java/org/apache/commons/cli2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ void process(
6262 * Indicates whether this Option will be able to process the particular
6363 * argument.
6464 *
65+ * @param commandLine
66+ * The CommandLine to check
6567 * @param argument
6668 * The argument to be tested
6769 * @return true if the argument can be processed by this Option
@@ -74,6 +76,8 @@ void process(
7476 * returning the boolean.
7577 *
7678 * @see #canProcess(WriteableCommandLine,String)
79+ * @param commandLine
80+ * the CommandLine to check
7781 * @param arguments
7882 * the ListIterator over String arguments
7983 * @return true if the argument can be processed by this Option
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ public final Argument create() {
9999 /**
100100 * Resets the ArgumentBuilder to the defaults for a new Argument. The
101101 * method is called automatically at the end of a create() call.
102+ * @return this ArgumentBuilder
102103 */
103104 public final ArgumentBuilder reset () {
104105 name = "arg" ;
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ public Command create() {
8484 *
8585 * This method is called automatically at the end of the
8686 * {@link #create() create} method.
87+ * @return this <code>CommandBuilder</code>
8788 */
8889 public CommandBuilder reset () {
8990 preferredName = null ;
Original file line number Diff line number Diff line change @@ -99,7 +99,8 @@ public DefaultOption create()
9999 }
100100
101101 /**
102- * Resets the builder
102+ * Resets the builder.
103+ * @return this builder
103104 */
104105 public DefaultOptionBuilder reset () {
105106 preferredName = null ;
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ public Group create() {
5656 }
5757
5858 /**
59- * Resets the builder
59+ * Resets the builder.
60+ * @return this builder
6061 */
6162 public GroupBuilder reset () {
6263 name = null ;
@@ -69,7 +70,7 @@ public GroupBuilder reset() {
6970 }
7071
7172 /**
72- * Use this option description
73+ * Use this option description.
7374 * @param newDescription the description to use
7475 * @return this builder
7576 */
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ public Option create() {
9090 }
9191
9292 /**
93- * Resets this builder
93+ * Resets this builder.
94+ * @return this builder
9495 */
9596 public PatternBuilder reset () {
9697 options .clear ();
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ public Switch create() {
9191 }
9292
9393 /**
94- * Resets the builder
94+ * Resets the builder.
95+ * @return this builder
9596 */
9697 public SwitchBuilder reset () {
9798 description = null ;
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ public CommandLine parse(final String[] arguments)
114114 *
115115 * @param arguments the command line arguments
116116 * @return a valid CommandLine or null if the parse was unsuccessful
117- * @throws IOException if an error occurs while formatting help
118117 */
119118 public CommandLine parseAndHelp (final String [] arguments ) {
120119 helpFormatter .setGroup (group );
Original file line number Diff line number Diff line change @@ -172,6 +172,8 @@ public void setInstance(boolean instance) {
172172 /**
173173 * Returns whether the specified name is allowed as
174174 * a Java class name.
175+ * @param name the name to be checked
176+ * @return true if allowed as Java class name
175177 */
176178 protected boolean isPotentialClassName (final String name ) {
177179 final char [] chars = name .toCharArray ();
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ public UrlValidator() {
6161
6262 /**
6363 * Creates a UrlValidator for the specified protocol.
64+ * @param protocol the protocol to be used
6465 */
6566 public UrlValidator (final String protocol ) {
6667 setProtocol (protocol );
You can’t perform that action at this time.
0 commit comments