commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ohe...@apache.org
Subject svn commit: r1535834 - /commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java
Date Fri, 25 Oct 2013 19:36:51 GMT
Author: oheger
Date: Fri Oct 25 19:36:50 2013
New Revision: 1535834

URL: http://svn.apache.org/r1535834
Log:
Generified ConverterFacade.

Modified:
    commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java

Modified: commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java?rev=1535834&r1=1535833&r2=1535834&view=diff
==============================================================================
--- commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java
(original)
+++ commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java
Fri Oct 25 19:36:50 2013
@@ -52,11 +52,12 @@ public final class ConverterFacade imple
      * specified type by delegating to the underlying {@link Converter}
      * implementation.
      *
+     * @param <T> The result type of the conversion
      * @param type Data type to which this value should be converted
      * @param value The input value to be converted
      * @return The converted value.
      */
-    public Object convert(Class type, Object value) {
+    public <T> T convert(Class<T> type, Object value) {
         return converter.convert(type, value);
     }
 



Mime
View raw message