This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git

commit cfbd6f89a8930acc835f40a063f39dcdc913ac7b
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Wed Dec 18 17:13:49 2024 -0500

    Javadoc
---
 src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java    | 1 +
 src/main/java/org/apache/commons/beanutils2/ConvertUtilsBean.java | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java 
b/src/main/java/org/apache/commons/beanutils2/BeanUtilsBean.java
index 9b96032a..af55b537 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 class BeanUtilsBean {
      * Converts the value to an object of the specified class (if possible).
      * </p>
      *
+     * @param <R> 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 5b33c32d..882ca09b 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 class ConvertUtilsBean {
     /**
      * Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} 
method.
      *
+     * @param <R> 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 <T> Object convert(final String value, final Class<T> clazz) {
+    public <R> Object convert(final String value, final Class<R> clazz) {
         return convert((Object) value, clazz);
     }
 
     /**
      * Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} 
method.
      *
+     * @param <T> 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

Reply via email to