Skip to content

Commit 8ee0ed5

Browse files
committed
Added the missing @SInCE tags for the classes and methods added in CLI 1.1
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/branches/cli-1.x@678667 13f79535-47bb-0310-9956-ffa450edef68
1 parent 28a8c18 commit 8ee0ed5

3 files changed

Lines changed: 11 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public Option(String opt, boolean hasArg, String description)
120120
* @throws IllegalArgumentException if there are any non valid
121121
* Option characters in <code>opt</code>.
122122
*/
123-
public Option(String opt, String longOpt, boolean hasArg,
123+
public Option(String opt, String longOpt, boolean hasArg,
124124
String description)
125125
throws IllegalArgumentException
126126
{
@@ -271,10 +271,11 @@ public String getDescription()
271271
return this.description;
272272
}
273273

274-
/**
274+
/**
275275
* Sets the self-documenting description of this Option
276276
*
277277
* @param description The description of this option
278+
* @since 1.1
278279
*/
279280
public void setDescription(String description)
280281
{
@@ -340,7 +341,7 @@ public boolean hasArgName()
340341
*/
341342
public boolean hasArgs()
342343
{
343-
return (this.numberOfArgs > 1)
344+
return (this.numberOfArgs > 1)
344345
|| (this.numberOfArgs == UNLIMITED_VALUES);
345346
}
346347

@@ -379,6 +380,7 @@ public char getValueSeparator()
379380
* Return whether this Option has specified a value separator.
380381
*
381382
* @return whether this Option has specified a value separator.
383+
* @since 1.1
382384
*/
383385
public boolean hasValueSeparator()
384386
{

src/java/org/apache/commons/cli/OptionValidator.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* Validates an Option string.
2121
*
2222
* @author John Keyes ( john at integralsource.com )
23+
* @since 1.1
2324
*/
2425
public class OptionValidator {
2526

@@ -98,4 +99,4 @@ private static boolean isValidChar(char c)
9899
{
99100
return Character.isJavaIdentifierPart(c);
100101
}
101-
}
102+
}

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public CommandLine parse(Options options, String[] arguments)
9797
*
9898
* @throws ParseException if there are any problems encountered
9999
* while parsing the command line tokens.
100+
*
101+
* @since 1.1
100102
*/
101103
public CommandLine parse(Options options, String[] arguments,
102104
Properties properties)
@@ -141,6 +143,8 @@ public CommandLine parse(Options options, String[] arguments,
141143
*
142144
* @throws ParseException if there are any problems encountered
143145
* while parsing the command line tokens.
146+
*
147+
* @since 1.1
144148
*/
145149
public CommandLine parse(Options options, String[] arguments,
146150
Properties properties, boolean stopAtNonOption)

0 commit comments

Comments
 (0)