bayard 2002/07/22 20:05:42
Modified: cli/src/java/org/apache/commons/cli TypeHandler.java
Log:
Moved back to using Commons.lang.Numbers and not NumberUtils. CLI depends on
the Maven repository and this will not be receiving the NumberUtils class for
a short while.
Revision Changes Path
1.4 +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.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TypeHandler.java 16 Jul 2002 14:47:01 -0000 1.3
+++ TypeHandler.java 23 Jul 2002 03:05:42 -0000 1.4
@@ -66,7 +66,7 @@
import java.net.MalformedURLException;
import java.util.Date;
-import org.apache.commons.lang.NumberUtils;
+import org.apache.commons.lang.Numbers;
/**
* 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 NumberUtils.createNumber(str);
+ return Numbers.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>
|