diff --git a/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java b/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java index 9b96032ab..af55b537b 100644 --- a/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java +++ b/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java @@ -203,6 +203,7 @@ public Object cloneBean(final Object bean) throws IllegalAccessException, Instan * Converts the value to an object of the specified class (if possible). *

* + * @param the type of the class for the return value. * @param value Value to be converted (may be null) * @param type Class of the value to be converted to * @return The converted value diff --git a/src/main/java/org/apache/commons/beanutils2/ConvertUtilsBean.java b/src/main/java/org/apache/commons/beanutils2/ConvertUtilsBean.java index 5b33c32df..882ca09b2 100644 --- a/src/main/java/org/apache/commons/beanutils2/ConvertUtilsBean.java +++ b/src/main/java/org/apache/commons/beanutils2/ConvertUtilsBean.java @@ -289,18 +289,20 @@ public Object convert(final Object value, final Class targetType) { /** * Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} method. * + * @param the type of the class for the return value. * @param value Value to be converted (may be null) * @param clazz Java class to be converted to (must not be null) * @return The converted value or null if value is null * @see ConvertUtilsBean#convert(String[], Class) */ - public Object convert(final String value, final Class clazz) { + public Object convert(final String value, final Class clazz) { return convert((Object) value, clazz); } /** * Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} method. * + * @param the type of the class for the return value. * @param value Array of values to be converted * @param clazz Java array or element class to be converted to (must not be null) * @return The converted value