Skip to content

Commit f0d54de

Browse files
committed
Better parameter names
1 parent 08f8c50 commit f0d54de

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ public Builder longOpt(final String longOpt) {
173173
/**
174174
* Sets the number of argument values the Option can take.
175175
*
176-
* @param numberOfArgs the number of argument values
176+
* @param argCount the number of argument values
177177
* @return this builder, to allow method chaining
178178
*/
179-
public Builder numberOfArgs(final int numberOfArgs) {
180-
this.argCount = numberOfArgs;
179+
public Builder numberOfArgs(final int argCount) {
180+
this.argCount = argCount;
181181
return this;
182182
}
183183

@@ -197,11 +197,11 @@ public Builder option(final String option) throws IllegalArgumentException {
197197
/**
198198
* Sets whether the Option can have an optional argument.
199199
*
200-
* @param isOptional specifies whether the Option can have an optional argument.
200+
* @param optionalArg specifies whether the Option can have an optional argument.
201201
* @return this builder, to allow method chaining
202202
*/
203-
public Builder optionalArg(final boolean isOptional) {
204-
this.optionalArg = isOptional;
203+
public Builder optionalArg(final boolean optionalArg) {
204+
this.optionalArg = optionalArg;
205205
return this;
206206
}
207207

@@ -262,11 +262,11 @@ public Builder valueSeparator() {
262262
* String propertyValue = line.getOptionValues("D")[1]; // will be "value"
263263
* </pre>
264264
*
265-
* @param sep The value separator.
265+
* @param valueSeparator The value separator.
266266
* @return this builder, to allow method chaining
267267
*/
268-
public Builder valueSeparator(final char sep) {
269-
valueSeparator = sep;
268+
public Builder valueSeparator(final char valueSeparator) {
269+
this.valueSeparator = valueSeparator;
270270
return this;
271271
}
272272
}

0 commit comments

Comments
 (0)