commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1565232 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
Date Thu, 06 Feb 2014 13:29:21 GMT
Author: sebb
Date: Thu Feb  6 13:29:21 2014
New Revision: 1565232

URL: http://svn.apache.org/r1565232
Log:
Clarify that leading zeros are not ignored

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java?rev=1565232&r1=1565231&r2=1565232&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
(original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
Thu Feb  6 13:29:21 2014
@@ -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>
      *



Mime
View raw message