4c0772
From 085b289c17f7047f4350d52bf594313392ae0caa Mon Sep 17 00:00:00 2001
4c0772
From: Marian Koncek <mkoncek@redhat.com>
4c0772
Date: Thu, 31 Oct 2019 12:30:12 +0100
4c0772
Subject: [PATCH] Port to OpenJDK 11
4c0772
4c0772
---
4c0772
 .../commons/collections/collection/AbstractTestCollection.java  | 2 +-
4c0772
 1 file changed, 1 insertion(+), 1 deletion(-)
4c0772
4c0772
diff --git a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java
4c0772
index dfde362..8287f33 100644
4c0772
--- a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java
4c0772
+++ b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java
4c0772
@@ -1116,7 +1116,7 @@ public abstract class AbstractTestCollection extends AbstractTestObject {
4c0772
         verify();
4c0772
 
4c0772
         try {
4c0772
-            array = collection.toArray(null);
4c0772
+            array = collection.toArray((Object[]) null);
4c0772
             fail("toArray(null) should raise NPE");
4c0772
         } catch (NullPointerException e) {
4c0772
             // expected
4c0772
-- 
4c0772
2.21.0
4c0772