[COLLECTIONS-669] Update
org.apache.commons.collections4.CollectionUtils.addAll(Collection<C>, C[]) to addAll(Collection<C>, C...)
This commit is contained in:
parent
2fd2a76110
commit
5723ce72d0
|
@ -69,6 +69,9 @@
|
|||
<action issue="COLLECTIONS-666" dev="ggregory" type="update" due-to="BELUGA BEHR">
|
||||
org.apache.commons.collections4.ListUtils.union(List, List) should pre-allocate result list.
|
||||
</action>
|
||||
<action issue="COLLECTIONS-669" dev="ggregory" type="update" due-to="Gary Gregory">
|
||||
Update org.apache.commons.collections4.CollectionUtils.addAll(Collection<C>, C[]) to addAll(Collection<C>, C...)
|
||||
</action>
|
||||
</release>
|
||||
<release version="4.1" date="2015-11-28" description="This is a security and minor release.">
|
||||
<action issue="COLLECTIONS-508" dev="tn" type="add">
|
||||
|
|
|
@ -1156,7 +1156,7 @@ public class CollectionUtils {
|
|||
* @return {@code true} if the collection was changed, {@code false} otherwise
|
||||
* @throws NullPointerException if the collection or array is null
|
||||
*/
|
||||
public static <C> boolean addAll(final Collection<C> collection, final C[] elements) {
|
||||
public static <C> boolean addAll(final Collection<C> collection, final C... elements) {
|
||||
boolean changed = false;
|
||||
for (final C element : elements) {
|
||||
changed |= collection.add(element);
|
||||
|
|
Loading…
Reference in New Issue