Skip to content

Commit 03f9ce2

Browse files
committed
Javadoc
Close HTML tags
1 parent ed6f672 commit 03f9ce2

1 file changed

Lines changed: 14 additions & 7 deletions

File tree

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

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public static Class<?> createClass(final String className) throws ParseException
6868
* Returns the date represented by {@code str}.
6969
* <p>
7070
* This method is not yet implemented and always throws an {@link UnsupportedOperationException}.
71+
* </p>
7172
*
7273
* @param str the date string
7374
* @return The date if {@code str} is a valid date string, otherwise return null.
@@ -99,8 +100,11 @@ public static File createFile(final String str) {
99100
}
100101

101102
/**
102-
* Returns the File[] represented by {@code str}.
103-
* <p> This method is not yet implemented and always throws an {@link UnsupportedOperationException}.
103+
* Creates the File[] represented by {@code str}.
104+
*
105+
* <p>
106+
* This method is not yet implemented and always throws an {@link UnsupportedOperationException}.
107+
* <p>
104108
*
105109
* @param str the paths to the files
106110
* @return The File[] represented by {@code str}.
@@ -115,7 +119,7 @@ public static File[] createFiles(final String str) {
115119
}
116120

117121
/**
118-
* Create a number from a String. If a '.' is present, it creates a Double, otherwise a Long.
122+
* Creates a number from a String. If a '.' is present, it creates a Double, otherwise a Long.
119123
*
120124
* @param str the value
121125
* @return the number represented by {@code str}
@@ -127,7 +131,7 @@ public static Number createNumber(final String str) throws ParseException {
127131
}
128132

129133
/**
130-
* Create an Object from the class name and empty constructor.
134+
* Creates an Object from the class name and empty constructor.
131135
*
132136
* @param className the argument value
133137
* @return the initialized object
@@ -140,7 +144,7 @@ public static Object createObject(final String className) throws ParseException
140144
}
141145

142146
/**
143-
* Returns the URL represented by {@code str}.
147+
* Creates the URL represented by {@code str}.
144148
*
145149
* @param str the URL string
146150
* @return The URL in {@code str} is well-formed
@@ -153,7 +157,7 @@ public static URL createURL(final String str) throws ParseException {
153157
}
154158

155159
/**
156-
* Returns the @code Object} of type {@code clazz} with the value of
160+
* Creates the @code Object} of type {@code clazz} with the value of
157161
* {@code str}.
158162
*
159163
* @param str the command line value
@@ -172,7 +176,7 @@ public static <T> T createValue(final String str, final Class<T> clazz) throws P
172176
}
173177

174178
/**
175-
* Returns the {@code Object} of type {@code obj} with the value of {@code str}.
179+
* Creates the {@code Object} of type {@code obj} with the value of {@code str}.
176180
*
177181
* @param str the command line value
178182
* @param obj the type of argument
@@ -187,6 +191,7 @@ public static Object createValue(final String str, final Object obj) throws Pars
187191

188192
/**
189193
* Gets the converter for the the Class. Never null.
194+
*
190195
* @param clazz The Class to get the Converter for.
191196
* @return the registered converter if any, {@link Converter#DEFAULT} otherwise.
192197
* @since 1.7.0
@@ -198,6 +203,7 @@ public static Object createValue(final String str, final Object obj) throws Pars
198203

199204
/**
200205
* Unregisters all Converters.
206+
*
201207
* @since 1.7.0
202208
*/
203209
public static void noConverters() {
@@ -235,6 +241,7 @@ public static void register(final Class<?> clazz, final Converter<?, ?> converte
235241

236242
/**
237243
* Resets the registered Converters to the default state.
244+
*
238245
* @since 1.7.0
239246
*/
240247
public static void resetConverters() {

0 commit comments

Comments
 (0)