Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Prior to performing conversion, NumberUtils is removing all whitespace from input string instead of removing only leading/trailing whitespace. This results in incorrect conversions instead of expected exceptions. As an example, calling NumberUtils.parseNumber("2 3", Double.class) will result in a new Double("23").
Affects: 3.0.5, 3.1.1
Referenced from: commits 78a6429
1 votes, 3 watchers
Sébastien Deleuze commented
I think the current behavior is correct, it is probably used in various application where you input credit card number or other use cases like that where in between space characters are usual, so I turn this issue into a Javadoc improvement one.