Skip to content

Commit 0a7160d

Browse files
author
Siegfried Goeschl
committed
Some cosmetic javadoc fixes to make reviewers happy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@733838 13f79535-47bb-0310-9956-ffa450edef68
1 parent f1e3d9d commit 0a7160d

10 files changed

Lines changed: 18 additions & 6 deletions

File tree

src/java/org/apache/commons/cli2/Option.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/java/org/apache/commons/cli2/builder/ArgumentBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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";

src/java/org/apache/commons/cli2/builder/CommandBuilder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;

src/java/org/apache/commons/cli2/builder/DefaultOptionBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

src/java/org/apache/commons/cli2/builder/GroupBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/

src/java/org/apache/commons/cli2/builder/PatternBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

src/java/org/apache/commons/cli2/builder/SwitchBuilder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

src/java/org/apache/commons/cli2/commandline/Parser.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

src/java/org/apache/commons/cli2/validation/ClassValidator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

src/java/org/apache/commons/cli2/validation/UrlValidator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)