Repository: commons-collections
Updated Branches:
  refs/heads/master 43b7fe30e -> 6b9e6419f


Casting to Object[] allows compilation on Java 11.

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

Branch: refs/heads/master
Commit: 6b9e6419fc944d3b5eac58187a6cd56e97328c2d
Parents: 43b7fe3
Author: Gary Gregory <garydgreg...@gmail.com>
Authored: Sun Oct 28 08:59:29 2018 -0600
Committer: Gary Gregory <garydgreg...@gmail.com>
Committed: Sun Oct 28 08:59:29 2018 -0600

----------------------------------------------------------------------
 .../commons/collections4/collection/AbstractCollectionTest.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-collections/blob/6b9e6419/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
----------------------------------------------------------------------
diff --git 
a/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
 
b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
index 71e55ad..c181309 100644
--- 
a/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
+++ 
b/src/test/java/org/apache/commons/collections4/collection/AbstractCollectionTest.java
@@ -1084,7 +1084,8 @@ public abstract class AbstractCollectionTest<E> extends 
AbstractObjectTest {
         verify();
 
         try {
-            array = getCollection().toArray(null);
+            // Casting to Object[] allows compilation on Java 11.
+            array = getCollection().toArray((Object[]) null);
             fail("toArray(null) should raise NPE");
         } catch (final NullPointerException e) {
             // expected

Reply via email to