mirror of
https://gitee.com/dromara/hutool.git
synced 2025-06-28 13:34:09 +08:00
fix bug
This commit is contained in:
parent
e4a5acf52b
commit
98590cb895
@ -22,6 +22,7 @@
|
||||
* 【core 】 修复单字母转换为数字的问题(issue#I5C4K1@Gitee)
|
||||
* 【core 】 修复IterUtil.filter无效问题
|
||||
* 【core 】 修复NumberUtil传入null,返回了true(issue#I5DTSL@Gitee)
|
||||
* 【core 】 修复NumberUtil.isDouble问题(pr#2400@Github)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -1281,11 +1281,10 @@ public class NumberUtil {
|
||||
}
|
||||
try {
|
||||
Double.parseDouble(s);
|
||||
return s.contains(".");
|
||||
} catch (NumberFormatException ignore) {
|
||||
// ignore
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
return s.contains(".");
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user