You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by oh...@apache.org on 2013/10/25 21:36:51 UTC

svn commit: r1535834 - /commons/proper/beanutils/branches/java5/src/main/java/org/apache/commons/beanutils/converters/ConverterFacade.java

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);
     }