From 5a001837b4ae6ca3b55f61179577f6d1d8f38d37 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Thu, 6 Feb 2014 13:29:21 +0000 Subject: [PATCH] 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 --- .../java/org/apache/commons/lang3/math/NumberUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java index 70b8d6466..33a2dd8e7 100644 --- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java +++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java @@ -677,7 +677,8 @@ public class NumberUtils { /** *

Convert a String to a Integer, handling - * hex and octal notations.

+ * hex (0xhhhh) and octal (0dddd) notations. + * N.B. a leading zero means octal; spaces are not trimmed.

* *

Returns null if the string is null.

* @@ -695,7 +696,8 @@ public class NumberUtils { /** *

Convert a String to a Long; - * since 3.1 it handles hex and octal notations.

+ * since 3.1 it handles hex (0Xhhhh) and octal (0ddd) notations. + * N.B. a leading zero means octal; spaces are not trimmed.

* *

Returns null if the string is null.

*