Skip to content

Commit 7108379

Browse files
committed
Javadoc
1 parent 7199a70 commit 7108379

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public int getOptionCount(final String optionName) {
267267
/**
268268
* Gets the {@code Object} type of this {@code Option}.
269269
*
270-
* @deprecated due to System.err message. Instead use getParsedOptionValue(char)
270+
* @deprecated due to System.err message; use {@link #getParsedOptionValue(char)} instead.
271271
* @param optionChar the name of the option.
272272
* @return the type of opt.
273273
*/
@@ -281,7 +281,7 @@ public Object getOptionObject(final char optionChar) {
281281
*
282282
* @param optionName the name of the option.
283283
* @return the type of this {@code Option}.
284-
* @deprecated due to System.err message. Instead use getParsedOptionValue(String)
284+
* @deprecated due to System.err message; use {@link #getParsedOptionValue(String)} instead.
285285
*/
286286
@Deprecated
287287
public Object getOptionObject(final String optionName) {

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

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ private static void reset() {
231231
/**
232232
* The next Option created will have the specified argument value name.
233233
*
234-
* @param name the name for the argument value
235-
* @return the OptionBuilder instance
234+
* @param name the name for the argument value.
235+
* @return the OptionBuilder instance.
236236
*/
237237
public static OptionBuilder withArgName(final String name) {
238238
argName = name;
@@ -242,8 +242,8 @@ public static OptionBuilder withArgName(final String name) {
242242
/**
243243
* The next Option created will have the specified description
244244
*
245-
* @param newDescription a description of the Option's purpose
246-
* @return the OptionBuilder instance
245+
* @param newDescription a description of the Option's purpose.
246+
* @return the OptionBuilder instance.
247247
*/
248248
public static OptionBuilder withDescription(final String newDescription) {
249249
description = newDescription;
@@ -253,8 +253,8 @@ public static OptionBuilder withDescription(final String newDescription) {
253253
/**
254254
* The next Option created will have the following long option value.
255255
*
256-
* @param newLongopt the long option value
257-
* @return the OptionBuilder instance
256+
* @param newLongopt the long option value.
257+
* @return the OptionBuilder instance.
258258
*/
259259
public static OptionBuilder withLongOpt(final String newLongopt) {
260260
longOption = newLongopt;
@@ -264,8 +264,8 @@ public static OptionBuilder withLongOpt(final String newLongopt) {
264264
/**
265265
* The next Option created will have a value that will be an instance of {@code type}.
266266
*
267-
* @param newType the type of the Options argument value
268-
* @return the OptionBuilder instance
267+
* @param newType the type of the Options argument value.
268+
* @return the OptionBuilder instance.
269269
* @since 1.3
270270
*/
271271
public static OptionBuilder withType(final Class<?> newType) {
@@ -279,9 +279,9 @@ public static OptionBuilder withType(final Class<?> newType) {
279279
* <strong>Note:</strong> this method is kept for binary compatibility and the input type is supposed to be a {@link Class}
280280
* object.
281281
*
282-
* @param newType the type of the Options argument value
283-
* @return the OptionBuilder instance
284-
* @deprecated Since 1.3, use {@link #withType(Class)} instead
282+
* @param newType the type of the Options argument value.
283+
* @return the OptionBuilder instance.
284+
* @deprecated Since 1.3, use {@link #withType(Class)} instead.
285285
*/
286286
@Deprecated
287287
public static OptionBuilder withType(final Object newType) {
@@ -301,7 +301,7 @@ public static OptionBuilder withType(final Object newType) {
301301
* String propertyValue = opt.getValue(1);
302302
* </pre>
303303
*
304-
* @return the OptionBuilder instance
304+
* @return the OptionBuilder instance.
305305
*/
306306
public static OptionBuilder withValueSeparator() {
307307
valueSeparator = Char.EQUAL;
@@ -323,15 +323,15 @@ public static OptionBuilder withValueSeparator() {
323323
* </pre>
324324
*
325325
* @param sep The value separator to be used for the argument values.
326-
* @return the OptionBuilder instance
326+
* @return the OptionBuilder instance.
327327
*/
328328
public static OptionBuilder withValueSeparator(final char sep) {
329329
valueSeparator = sep;
330330
return INSTANCE;
331331
}
332332

333333
/**
334-
* private constructor to prevent instances being created
334+
* private constructor to prevent instances being created.
335335
*/
336336
private OptionBuilder() {
337337
// hide the constructor

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2929
/**
3030
* Creates {@link CommandLine} instances.
3131
*
32-
* @deprecated Since 1.3, the two-pass parsing with the flatten method is not enough flexible to handle complex cases
32+
* @deprecated Since 1.3, the two-pass parsing with the flatten method is not enough flexible to handle complex cases.
3333
*/
3434
@Deprecated
3535
public abstract class Parser implements CommandLineParser {
@@ -316,7 +316,7 @@ protected void setOptions(final Options options) {
316316
/**
317317
* Removes the option or its group from the list of expected elements.
318318
*
319-
* @param opt
319+
* @param opt the option.
320320
*/
321321
private void updateRequiredOptions(final Option opt) throws ParseException {
322322
// if the option is a required option remove the option from

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ Licensed to the Apache Software Foundation (ASF) under one or more
2828
* The class PosixParser provides an implementation of the {@link Parser#flatten(Options,String[],boolean) flatten}
2929
* method.
3030
*
31-
* @deprecated Since 1.3, use the {@link DefaultParser} instead
31+
* @deprecated Since 1.3, use the {@link DefaultParser} instead.
3232
*/
3333
@Deprecated
3434
public class PosixParser extends Parser {
3535

36-
/** Holder for flattened tokens */
36+
/** Holder for flattened tokens. */
3737
private final List<String> tokens = new ArrayList<>();
3838

39-
/** Specifies if bursting should continue */
39+
/** Specifies if bursting should continue.. */
4040
private boolean eatTheRest;
4141

4242
/** Holder for the current option */
4343
private Option currentOption;
4444

45-
/** The command line Options */
45+
/** The command line Options. */
4646
private Options options;
4747

4848
/**
@@ -55,7 +55,7 @@ public PosixParser() {
5555
/**
5656
* Adds the remaining tokens to the processed tokens list.
5757
*
58-
* @param iter An iterator over the remaining tokens
58+
* @param iter An iterator over the remaining tokens.
5959
*/
6060
private void addRemaining(final Iterator<String> iter) {
6161
if (eatTheRest) {

0 commit comments

Comments
 (0)