Skip to content

Commit cfbd6f8

Browse files
committed
Javadoc
1 parent 3f3c65a commit cfbd6f8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ public Object cloneBean(final Object bean) throws IllegalAccessException, Instan
203203
* Converts the value to an object of the specified class (if possible).
204204
* </p>
205205
*
206+
* @param <R> the type of the class for the return value.
206207
* @param value Value to be converted (may be null)
207208
* @param type Class of the value to be converted to
208209
* @return The converted value

src/main/java/org/apache/commons/beanutils2/ConvertUtilsBean.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,20 @@ public <T> Object convert(final Object value, final Class<T> targetType) {
289289
/**
290290
* Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} method.
291291
*
292+
* @param <R> the type of the class for the return value.
292293
* @param value Value to be converted (may be null)
293294
* @param clazz Java class to be converted to (must not be null)
294295
* @return The converted value or null if value is null
295296
* @see ConvertUtilsBean#convert(String[], Class)
296297
*/
297-
public <T> Object convert(final String value, final Class<T> clazz) {
298+
public <R> Object convert(final String value, final Class<R> clazz) {
298299
return convert((Object) value, clazz);
299300
}
300301

301302
/**
302303
* Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} method.
303304
*
305+
* @param <T> the type of the class for the return value.
304306
* @param value Array of values to be converted
305307
* @param clazz Java array or element class to be converted to (must not be null)
306308
* @return The converted value

0 commit comments

Comments
 (0)