[COLLECTIONS-669] Update

org.apache.commons.collections4.CollectionUtils.addAll(Collection<C>,
C[]) to addAll(Collection<C>, C...)
This commit is contained in:
Gary Gregory 2018-01-02 15:34:03 -07:00
parent 2fd2a76110
commit 5723ce72d0
2 changed files with 4 additions and 1 deletions

View File

@ -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&lt;C>, C[]) to addAll(Collection&lt;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">

View File

@ -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);