From ad8ac18f775163748056951d10af124d6f24dc30 Mon Sep 17 00:00:00 2001 From: Adam Samalik Date: Thu, 29 Jun 2023 11:16:18 +0200 Subject: [PATCH] re-import sources as agreed with the maintainer --- 0001-Port-to-Java-11.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 0001-Port-to-Java-11.patch diff --git a/0001-Port-to-Java-11.patch b/0001-Port-to-Java-11.patch new file mode 100644 index 0000000..efbac70 --- /dev/null +++ b/0001-Port-to-Java-11.patch @@ -0,0 +1,13 @@ +diff --git a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java +index dfde362..00c5d26 100644 +--- a/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java ++++ b/src/test/org/apache/commons/collections/collection/AbstractTestCollection.java +@@ -1116,7 +1116,7 @@ public abstract class AbstractTestCollection extends AbstractTestObject { + verify(); + + try { +- array = collection.toArray(null); ++ array = collection.toArray((Object[])null); + fail("toArray(null) should raise NPE"); + } catch (NullPointerException e) { + // expected