Clarify that leading zeros are not ignored

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1565232 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-02-06 13:29:21 +00:00
parent 4d51150a69
commit 5a001837b4
1 changed files with 4 additions and 2 deletions

View File

@ -677,7 +677,8 @@ public class NumberUtils {
/**
* <p>Convert a <code>String</code> to a <code>Integer</code>, handling
* hex and octal notations.</p>
* hex (0xhhhh) and octal (0dddd) notations.
* N.B. a leading zero means octal; spaces are not trimmed.</p>
*
* <p>Returns <code>null</code> if the string is <code>null</code>.</p>
*
@ -695,7 +696,8 @@ public class NumberUtils {
/**
* <p>Convert a <code>String</code> to a <code>Long</code>;
* since 3.1 it handles hex and octal notations.</p>
* since 3.1 it handles hex (0Xhhhh) and octal (0ddd) notations.
* N.B. a leading zero means octal; spaces are not trimmed.</p>
*
* <p>Returns <code>null</code> if the string is <code>null</code>.</p>
*