You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2018/01/02 22:34:07 UTC

commons-collections git commit: [COLLECTIONS-669] Update org.apache.commons.collections4.CollectionUtils.addAll(Collection, C[]) to addAll(Collection, C...)

Repository: commons-collections
Updated Branches:
  refs/heads/master 2fd2a7611 -> 5723ce72d


[COLLECTIONS-669] Update
org.apache.commons.collections4.CollectionUtils.addAll(Collection<C>,
C[]) to addAll(Collection<C>, C...)

Project: http://git-wip-us.apache.org/repos/asf/commons-collections/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-collections/commit/5723ce72
Tree: http://git-wip-us.apache.org/repos/asf/commons-collections/tree/5723ce72
Diff: http://git-wip-us.apache.org/repos/asf/commons-collections/diff/5723ce72

Branch: refs/heads/master
Commit: 5723ce72d04c8ff7af8f245518cc48291701db0d
Parents: 2fd2a76
Author: Gary Gregory <gg...@apache.org>
Authored: Tue Jan 2 15:34:03 2018 -0700
Committer: Gary Gregory <gg...@apache.org>
Committed: Tue Jan 2 15:34:03 2018 -0700

----------------------------------------------------------------------
 src/changes/changes.xml                                           | 3 +++
 .../java/org/apache/commons/collections4/CollectionUtils.java     | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5723ce72/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 3b75437..fdd5c4f 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -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">

http://git-wip-us.apache.org/repos/asf/commons-collections/blob/5723ce72/src/main/java/org/apache/commons/collections4/CollectionUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/collections4/CollectionUtils.java b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
index 7e6bc58..0d93e6c 100644
--- a/src/main/java/org/apache/commons/collections4/CollectionUtils.java
+++ b/src/main/java/org/apache/commons/collections4/CollectionUtils.java
@@ -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);