Skip to content

Commit

Permalink
Document NumberUtils.parseNumber() trim behavior
Browse files Browse the repository at this point in the history
Issue: SPR-9523
  • Loading branch information
sdeleuze committed Dec 28, 2018
1 parent bd6432c commit 78a6429
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -178,7 +178,8 @@ private static void raiseOverflowException(Number number, Class<?> targetClass)
/**
* Parse the given {@code text} into a {@link Number} instance of the given
* target class, using the corresponding {@code decode} / {@code valueOf} method.
* <p>Trims the input {@code String} before attempting to parse the number.
* <p>Trims all whitespace (leading, trailing, and in between characters) from
* the input {@code String} before attempting to parse the number.
* <p>Supports numbers in hex format (with leading "0x", "0X", or "#") as well.
* @param text the text to convert
* @param targetClass the target class to parse into
Expand Down

0 comments on commit 78a6429

Please sign in to comment.