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 Tue, 16 Jul 2002 14:47:02 GMT
bayard      2002/07/16 07:47:02

  Modified:    cli/src/java/org/apache/commons/cli TypeHandler.java
  Log:
  Changed Numbers to NumberUtils.
  
  Revision  Changes    Path
  1.3       +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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- TypeHandler.java	9 Jul 2002 23:12:15 -0000	1.2
  +++ TypeHandler.java	16 Jul 2002 14:47:01 -0000	1.3
  @@ -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