mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
cn.hutool.core.collection.CollUtil#addAll(java.util.Collection<T>, java.lang.Iterable<T>) 判断空指针
This commit is contained in:
parent
5bb4ff9c40
commit
0ee10efa04
@ -2108,7 +2108,7 @@ public class CollUtil {
|
||||
* @return 原集合
|
||||
*/
|
||||
public static <T> Collection<T> addAll(Collection<T> collection, Iterable<T> iterable) {
|
||||
if(iterable == null){
|
||||
if (iterable == null) {
|
||||
return collection;
|
||||
}
|
||||
return addAll(collection, iterable.iterator());
|
||||
|
Loading…
x
Reference in New Issue
Block a user