mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-05 17:37:59 +08:00
fix bug
This commit is contained in:
parent
33e95b23c1
commit
7eca54cf08
@ -3,7 +3,7 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.8.4.M1 (2022-06-20)
|
||||
# 5.8.4.M1 (2022-06-23)
|
||||
|
||||
### 🐣新特性
|
||||
* 【extra 】 Sftp增加构造重载,支持超时(pr#653@Gitee)
|
||||
@ -21,6 +21,7 @@
|
||||
* 【core 】 修复CsvData.getHeader没有判空导致空指针问题(issue#I5CK7Q@Gitee)
|
||||
* 【core 】 修复单字母转换为数字的问题(issue#I5C4K1@Gitee)
|
||||
* 【core 】 修复IterUtil.filter无效问题
|
||||
* 【core 】 修复NumberUtil传入null,返回了true(issue#I5DTSL@Gitee)
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -2671,6 +2671,9 @@ public class NumberUtil {
|
||||
* @since 4.6.7
|
||||
*/
|
||||
public static boolean isValidNumber(Number number) {
|
||||
if(null == number){
|
||||
return false;
|
||||
}
|
||||
if (number instanceof Double) {
|
||||
return (false == ((Double) number).isInfinite()) && (false == ((Double) number).isNaN());
|
||||
} else if (number instanceof Float) {
|
||||
|
Loading…
Reference in New Issue
Block a user