@@ -35,7 +35,7 @@ Licensed to the Apache Software Foundation (ASF) under one or more
3535 */
3636public class CommandLine implements Serializable {
3737 /**
38- * A nested builder class to create < code> CommandLine</code> instance using descriptive methods.
38+ * A nested builder class to create {@ code CommandLine} instance using descriptive methods.
3939 *
4040 * @since 1.4
4141 */
@@ -111,7 +111,7 @@ protected void addOption(final Option opt) {
111111 /**
112112 * Retrieve any left-over non-recognized options and arguments
113113 *
114- * @return remaining items passed in but not parsed as a < code> List</code> .
114+ * @return remaining items passed in but not parsed as a {@ code List} .
115115 */
116116 public List <String > getArgList () {
117117 return args ;
@@ -131,7 +131,7 @@ public String[] getArgs() {
131131 }
132132
133133 /**
134- * Return the < code> Object</code> type of this < code> Option</code> .
134+ * Return the {@ code Object} type of this {@ code Option} .
135135 *
136136 * @deprecated due to System.err message. Instead use getParsedOptionValue(char)
137137 * @param opt the name of the option.
@@ -143,10 +143,10 @@ public Object getOptionObject(final char opt) {
143143 }
144144
145145 /**
146- * Return the < code> Object</code> type of this < code> Option</code> .
146+ * Return the {@ code Object} type of this {@ code Option} .
147147 *
148148 * @param opt the name of the option.
149- * @return the type of this < code> Option</code> .
149+ * @return the type of this {@ code Option} .
150150 * @deprecated due to System.err message. Instead use getParsedOptionValue(String)
151151 */
152152 @ Deprecated
@@ -163,10 +163,10 @@ public Object getOptionObject(final String opt) {
163163 * Retrieve the map of values associated to the option. This is convenient for options specifying Java properties like
164164 * <code>-Dparam1=value1
165165 * -Dparam2=value2</code>. The first argument of the option is the key, and the 2nd argument is the value. If the option
166- * has only one argument (< code> -Dfoo</code> ) it is considered as a boolean flag and the value is < code> "true"</code> .
166+ * has only one argument ({@ code -Dfoo} ) it is considered as a boolean flag and the value is {@ code "true"} .
167167 *
168168 * @param option name of the option.
169- * @return The Properties mapped by the option, never < code> null</code> even if the option doesn't exists.
169+ * @return The Properties mapped by the option, never {@ code null} even if the option doesn't exists.
170170 * @since 1.5
171171 */
172172 public Properties getOptionProperties (final Option option ) {
@@ -192,10 +192,10 @@ public Properties getOptionProperties(final Option option) {
192192 * Retrieve the map of values associated to the option. This is convenient for options specifying Java properties like
193193 * <code>-Dparam1=value1
194194 * -Dparam2=value2</code>. The first argument of the option is the key, and the 2nd argument is the value. If the option
195- * has only one argument (< code> -Dfoo</code> ) it is considered as a boolean flag and the value is < code> "true"</code> .
195+ * has only one argument ({@ code -Dfoo} ) it is considered as a boolean flag and the value is {@ code "true"} .
196196 *
197197 * @param opt name of the option.
198- * @return The Properties mapped by the option, never < code> null</code> even if the option doesn't exists.
198+ * @return The Properties mapped by the option, never {@ code null} even if the option doesn't exists.
199199 * @since 1.2
200200 */
201201 public Properties getOptionProperties (final String opt ) {
@@ -247,7 +247,7 @@ public String getOptionValue(final char opt) {
247247 *
248248 * @param opt character name of the option
249249 * @param defaultValue is the default value to be returned if the option is not specified.
250- * @return Value of the argument if option is set, and has an argument, otherwise < code> defaultValue</code> .
250+ * @return Value of the argument if option is set, and has an argument, otherwise {@ code defaultValue} .
251251 */
252252 public String getOptionValue (final char opt , final String defaultValue ) {
253253 return getOptionValue (String .valueOf (opt ), defaultValue );
@@ -273,7 +273,7 @@ public String getOptionValue(final Option option) {
273273 *
274274 * @param option name of the option.
275275 * @param defaultValue is the default value to be returned if the option is not specified.
276- * @return Value of the argument if option is set, and has an argument, otherwise < code> defaultValue</code> .
276+ * @return Value of the argument if option is set, and has an argument, otherwise {@ code defaultValue} .
277277 * @since 1.5
278278 */
279279 public String getOptionValue (final Option option , final String defaultValue ) {
@@ -296,7 +296,7 @@ public String getOptionValue(final String opt) {
296296 *
297297 * @param opt name of the option.
298298 * @param defaultValue is the default value to be returned if the option is not specified.
299- * @return Value of the argument if option is set, and has an argument, otherwise < code> defaultValue</code> .
299+ * @return Value of the argument if option is set, and has an argument, otherwise {@ code defaultValue} .
300300 */
301301 public String getOptionValue (final String opt , final String defaultValue ) {
302302 return getOptionValue (resolveOption (opt ), defaultValue );
@@ -342,7 +342,7 @@ public String[] getOptionValues(final String opt) {
342342 }
343343
344344 /**
345- * Return a version of this < code> Option</code> converted to a particular type.
345+ * Return a version of this {@ code Option} converted to a particular type.
346346 *
347347 * @param opt the name of the option.
348348 * @return the value parsed into a particular object.
@@ -355,7 +355,7 @@ public Object getParsedOptionValue(final char opt) throws ParseException {
355355 }
356356
357357 /**
358- * Return a version of this < code> Option</code> converted to a particular type.
358+ * Return a version of this {@ code Option} converted to a particular type.
359359 *
360360 * @param option the name of the option.
361361 * @return the value parsed into a particular object.
@@ -375,7 +375,7 @@ public Object getParsedOptionValue(final Option option) throws ParseException {
375375 }
376376
377377 /**
378- * Return a version of this < code> Option</code> converted to a particular type.
378+ * Return a version of this {@ code Option} converted to a particular type.
379379 *
380380 * @param opt the name of the option.
381381 * @return the value parsed into a particular object.
@@ -439,7 +439,7 @@ public boolean hasOption(final String opt) {
439439 /**
440440 * Returns an iterator over the Option members of CommandLine.
441441 *
442- * @return an < code> Iterator</code> over the processed {@link Option} members of this {@link CommandLine}.
442+ * @return an {@ code Iterator} over the processed {@link Option} members of this {@link CommandLine}.
443443 */
444444 public Iterator <Option > iterator () {
445445 return options .iterator ();
0 commit comments