|
|
|
@ -129,9 +129,7 @@ public abstract class CollectionUtils { |
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
public static <E> void mergeArrayIntoCollection(@Nullable Object array, Collection<E> collection) { |
|
|
|
public static <E> void mergeArrayIntoCollection(@Nullable Object array, Collection<E> collection) { |
|
|
|
Object[] arr = ObjectUtils.toObjectArray(array); |
|
|
|
Object[] arr = ObjectUtils.toObjectArray(array); |
|
|
|
for (Object elem : arr) { |
|
|
|
Collections.addAll(collection, (E[])arr); |
|
|
|
collection.add((E) elem); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
|