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 8f99c782d..d9a569f99 100644 --- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java +++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java @@ -1348,15 +1348,7 @@ public class NumberUtils { * @return true if str contains only Unicode numeric */ public static boolean isDigits(final String str) { - if (StringUtils.isEmpty(str)) { - return false; - } - for (int i = 0; i < str.length(); i++) { - if (!Character.isDigit(str.charAt(i))) { - return false; - } - } - return true; + return StringUtils.isNumeric(str); } /**