This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git
The following commit(s) were added to refs/heads/master by this push:
new 386af293e Fix NumberUtils.isParsable duplicate Long::parseLong (#1570)
386af293e is described below
commit 386af293e1f460d19ee4e5b8ddf795e302f16934
Author: David Du <[email protected]>
AuthorDate: Sun Jan 18 22:09:46 2026 +0800
Fix NumberUtils.isParsable duplicate Long::parseLong (#1570)
---
src/main/java/org/apache/commons/lang3/math/NumberUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 6abd66502..d4863e746 100644
--- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
+++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java
@@ -757,7 +757,7 @@ public static boolean isNumber(final String str) {
* @since 3.4
*/
public static boolean isParsable(final String str) {
- return accept(Double::parseDouble, str) || accept(Long::parseLong,
str) || accept(Float::parseFloat, str) || accept(Long::parseLong, str);
+ return accept(Double::parseDouble, str) || accept(Long::parseLong,
str);
}
private static boolean isSign(final char ch) {