Skip to content

Commit 991e627

Browse files
committed
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. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk@129786 13f79535-47bb-0310-9956-ffa450edef68
1 parent c712732 commit 991e627

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/java/org/apache/commons/cli/TypeHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
import java.net.MalformedURLException;
6767
import java.util.Date;
6868

69-
import org.apache.commons.lang.NumberUtils;
69+
import org.apache.commons.lang.Numbers;
7070

7171
/**
7272
* This is a temporary implementation. TypeHandler will handle the
@@ -175,7 +175,7 @@ public static Number createNumber(String str) {
175175
// Needs to be able to create
176176
try {
177177
// do searching for decimal point etc, but atm just make an Integer
178-
return NumberUtils.createNumber(str);
178+
return Numbers.createNumber(str);
179179
} catch (NumberFormatException nfe) {
180180
System.err.println(nfe.getMessage());
181181
return null;

0 commit comments

Comments
 (0)