commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rand McNeely" <>
Subject [lang] patch Numbers/NumbersTest
Date Sat, 06 Jul 2002 16:44:50 GMT
Modified Numbers.isNumber to return true iff Numbers.createNumber can
create a number.  

Changed the null handling in createNumber to throw a
NullPointerException if null was passed.  This is more inline with the
JDK number parsing routines.  Comments?

One final thing, createNumber only returns hex if the string uses the 0x
qualifier.  I didn't like the idea of the user thinking things like
"ABC123" were interpreted as hex and then passing in "123E45" and
getting a Double.


View raw message