Update hutool-core/src/main/java/org/dromara/hutool/core/collection/CollUtil.java

This commit is contained in:
emptypoint 2023-07-01 08:47:26 +00:00 committed by Gitee
parent ef166b6201
commit 13fe08c73f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);
}