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
8e46171695
commit
ef166b6201
@ -2378,8 +2378,7 @@ public class CollUtil {
|
||||
*/
|
||||
@SuppressWarnings({"unchecked"})
|
||||
public static List<Object> flat(Collection<?> collection, boolean skipNull) {
|
||||
LinkedList queue = EasyStream.of(collection)
|
||||
.collect(Collectors.toCollection(LinkedList::new));
|
||||
LinkedList<Object> queue = new LinkedList<>(collection);
|
||||
|
||||
List<Object> result = new ArrayList<>();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user