mirror of
https://gitee.com/dromara/hutool.git
synced 2025-07-17 19:37:37 +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()) {
|
while (!queue.isEmpty()) {
|
||||||
Object t = queue.removeFirst();
|
Object t = queue.removeFirst();
|
||||||
|
|
||||||
if (skipNull && t == null) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (t instanceof Collection) {
|
if (t instanceof Collection) {
|
||||||
queue.addAll((Collection<?>) t);
|
queue.addAll((Collection<?>) t);
|
||||||
|
} else if (skipNull && t == null) {
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
result.add(t);
|
result.add(t);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user