diff --git a/hutool-core/src/main/java/org/dromara/hutool/core/collection/CollUtil.java b/hutool-core/src/main/java/org/dromara/hutool/core/collection/CollUtil.java index cbd00947d..9dc68c554 100644 --- a/hutool-core/src/main/java/org/dromara/hutool/core/collection/CollUtil.java +++ b/hutool-core/src/main/java/org/dromara/hutool/core/collection/CollUtil.java @@ -2378,8 +2378,7 @@ public class CollUtil { */ @SuppressWarnings({"unchecked"}) public static List flat(Collection collection, boolean skipNull) { - LinkedList queue = EasyStream.of(collection) - .collect(Collectors.toCollection(LinkedList::new)); + LinkedList queue = new LinkedList<>(collection); List result = new ArrayList<>();