mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Merge pull request #948 from GRain-long/patch-1
[bug修复]修复ArrayUtil中isEmpty带来的异常
This commit is contained in:
commit
6f85c396f0
@ -66,12 +66,13 @@ public class ArrayUtil {
|
||||
* @return 是否为空
|
||||
*/
|
||||
public static boolean isEmpty(Object array) {
|
||||
if (null == array) {
|
||||
return true;
|
||||
} else if (isArray(array)) {
|
||||
return 0 == Array.getLength(array);
|
||||
if (array != null) {
|
||||
if (isArray(array)) {
|
||||
return 0 == Array.getLength(array);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
throw new UtilException("Object to provide is not a Array !");
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user