Jagdish-Singh-Bisht opened a new pull request, #1546:
URL: https://github.com/apache/commons-lang/pull/1546
This PR addresses LANG-1806 as a small follow-up to LANG-1695.
NumberUtils.isParsable currently rejects strings such as "1.f" and "1.d",
even though Float.parseFloat("1.f") and Double.parseDouble(1.d") succeed.
The test suite already contained TODOs for these cases, this change
uncomments those assertions and updates the parsing logic to allow
floating-point suffixes (f/F/d/D) only when they appear as the final character.
The change is intentionally minimal and doesn not affect other numeric
formats.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]