commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons/cli/src/java/org/apache/commons/cli TypeHandler.java
Date Fri, 26 Jul 2002 14:12:34 GMT
bayard      2002/07/26 07:12:34

  Modified:    cli/src/java/org/apache/commons/cli TypeHandler.java
  Log:
  Brought this file uptodate with latest beta release of Lang.
  
  Revision  Changes    Path
  1.5       +2 -2      jakarta-commons/cli/src/java/org/apache/commons/cli/TypeHandler.java
  
  Index: TypeHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/cli/src/java/org/apache/commons/cli/TypeHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TypeHandler.java	23 Jul 2002 03:05:42 -0000	1.4
  +++ TypeHandler.java	26 Jul 2002 14:12:34 -0000	1.5
  @@ -66,7 +66,7 @@
   import java.net.MalformedURLException;
   import java.util.Date;
   
  -import org.apache.commons.lang.Numbers;
  +import org.apache.commons.lang.NumberUtils;
   
   /**
     * This is a temporary implementation. TypeHandler will handle the 
  @@ -175,7 +175,7 @@
           // Needs to be able to create
           try {
               // do searching for decimal point etc, but atm just make an Integer
  -            return Numbers.createNumber(str);
  +            return NumberUtils.createNumber(str);
           } catch (NumberFormatException nfe) {
               System.err.println(nfe.getMessage());
               return null;
  
  
  

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


Mime
View raw message