commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons-sandbox/convert/src/java/org/apache/commons/convert2 ConvertUtils.java
Date Wed, 17 Mar 2004 22:36:50 GMT
scolebourne    2004/03/17 14:36:50

  Modified:    convert/src/java/org/apache/commons/convert2
                        ConvertUtils.java
  Log:
  Fix incorrect method signature
  
  Revision  Changes    Path
  1.4       +3 -3      jakarta-commons-sandbox/convert/src/java/org/apache/commons/convert2/ConvertUtils.java
  
  Index: ConvertUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/convert/src/java/org/apache/commons/convert2/ConvertUtils.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- ConvertUtils.java	7 Mar 2004 01:16:28 -0000	1.3
  +++ ConvertUtils.java	17 Mar 2004 22:36:50 -0000	1.4
  @@ -51,8 +51,8 @@
        * @param toClass  the class to convert to
        * @throws ConversionException (runtime) if conversion fails
        */
  -    public static String convertToString(Object value, Class fromClass, Class toClass)
{
  -        return DEFAULT.convertToString(value, fromClass);
  +    public static Object convert(Object value, Class fromClass, Class toClass) {
  +        return DEFAULT.convert(value, fromClass, toClass);
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message