Skip to content

Commit b4b0fb1

Browse files
committed
Added missing @SInCE tags
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@779077 13f79535-47bb-0310-9956-ffa450edef68
1 parent ace122c commit b4b0fb1

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ public Object getOptionObject(String opt)
105105
* @return the value parsed into a particluar object
106106
* @throws ParseException if there are problems turning the option value into the desired type
107107
* @see PatternOptionBuilder
108+
* @since 1.2
108109
*/
109110
public Object getParsedOptionValue(String opt) throws ParseException
110111
{
@@ -118,7 +119,7 @@ public Object getParsedOptionValue(String opt) throws ParseException
118119

119120
Object type = option.getType();
120121

121-
return (res == null) ? null : TypeHandler.createValue(res, type);
122+
return (res == null) ? null : TypeHandler.createValue(res, type);
122123
}
123124

124125
/**

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,19 +303,21 @@ public String getArgName()
303303
}
304304

305305
/**
306-
* Comparator used to sort the options when they output in help text
306+
* Comparator used to sort the options when they output in help text.
307+
* Defaults to case-insensitive alphabetical sorting by option key.
307308
*
308-
* Defaults to case-insensitive alphabetical sorting by option key
309+
* @since 1.2
309310
*/
310311
public Comparator getOptionComparator()
311312
{
312313
return optionComparator;
313314
}
314315

315316
/**
316-
* Set the comparator used to sort the options when they output in help text
317+
* Set the comparator used to sort the options when they output in help text.
318+
* Passing in a null parameter will set the ordering to the default mode.
317319
*
318-
* Passing in a null parameter will set the ordering to the default mode
320+
* @since 1.2
319321
*/
320322
public void setOptionComparator(Comparator comparator)
321323
{

0 commit comments

Comments
 (0)