mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user