Skip to content

Commit ea44bdb

Browse files
committed
Fix NumberUtils.isParsable duplicate Long::parseLong
1 parent 52b1a3a commit ea44bdb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/apache/commons/lang3/math/NumberUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ public static boolean isNumber(final String str) {
757757
* @since 3.4
758758
*/
759759
public static boolean isParsable(final String str) {
760-
return accept(Double::parseDouble, str) || accept(Long::parseLong, str) || accept(Float::parseFloat, str) || accept(Long::parseLong, str);
760+
return accept(Double::parseDouble, str) || accept(Long::parseLong, str) || accept(Float::parseFloat, str) || accept(Integer::parseInt, str);
761761
}
762762

763763
private static boolean isSign(final char ch) {

0 commit comments

Comments
 (0)