mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
几个小优化
This commit is contained in:
parent
21b91fcde6
commit
f3d04e1f1f
@ -1087,9 +1087,7 @@ public class CollUtil {
|
|||||||
.filter(Objects::nonNull)
|
.filter(Objects::nonNull)
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
return StreamUtil.of(collection)
|
return StreamUtil.of(collection).map(mapper).collect(Collectors.toList());
|
||||||
.map(mapper)
|
|
||||||
.collect(Collectors.toList());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user