Skip to content

Commit 48460cf

Browse files
committed
Javadoc and comment
1 parent 4d20265 commit 48460cf

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private Builder(final String option) throws IllegalArgumentException {
116116
* Sets the display name for the argument value.
117117
*
118118
* @param argName the display name for the argument value.
119-
* @return this builder, to allow method chaining.
119+
* @return {@code this} instance..
120120
*/
121121
public Builder argName(final String argName) {
122122
this.argName = argName;
@@ -143,7 +143,7 @@ public Option build() {
143143
* </p>
144144
*
145145
* @param converter the Converter to use.
146-
* @return this builder, to allow method chaining.
146+
* @return {@code this} instance..
147147
* @since 1.7.0
148148
*/
149149
public Builder converter(final Converter<?, ?> converter) {
@@ -177,7 +177,7 @@ public Builder deprecated(final DeprecatedAttributes deprecated) {
177177
* Sets the description for this option.
178178
*
179179
* @param description the description of the option.
180-
* @return this builder, to allow method chaining.
180+
* @return {@code this} instance..
181181
*/
182182
public Builder desc(final String description) {
183183
this.description = description;
@@ -187,7 +187,7 @@ public Builder desc(final String description) {
187187
/**
188188
* Tests whether the Option will require an argument.
189189
*
190-
* @return this builder, to allow method chaining.
190+
* @return {@code this} instance..
191191
*/
192192
public Builder hasArg() {
193193
return hasArg(true);
@@ -197,7 +197,7 @@ public Builder hasArg() {
197197
* Tests whether the Option has an argument or not.
198198
*
199199
* @param hasArg specifies whether the Option takes an argument or not.
200-
* @return this builder, to allow method chaining.
200+
* @return {@code this} instance..
201201
*/
202202
public Builder hasArg(final boolean hasArg) {
203203
// set to UNINITIALIZED when no arg is specified to be compatible with OptionBuilder

0 commit comments

Comments
 (0)