mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Update hutool-core/src/main/java/org/dromara/hutool/core/collection/CollUtil.java
This commit is contained in:
parent
ef166b6201
commit
13fe08c73f
@ -2385,12 +2385,10 @@ public class CollUtil {
|
||||
while (!queue.isEmpty()) {
|
||||
Object t = queue.removeFirst();
|
||||
|
||||
if (skipNull && t == null) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (t instanceof Collection) {
|
||||
queue.addAll((Collection<?>) t);
|
||||
} else if (skipNull && t == null) {
|
||||
continue;
|
||||
} else {
|
||||
result.add(t);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user