This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rdf.git


The following commit(s) were added to refs/heads/master by this push:
     new 70ecead0 Update call deprecated in Java 9
70ecead0 is described below

commit 70ecead0be2aa4c6193f0d4260129fc9dff1c975
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Oct 2 15:16:31 2023 -0400

    Update call deprecated in Java 9
---
 .../java/org/apache/commons/rdf/integrationtests/AllToAllTest.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java
 
b/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java
index 83c9bea2..95aa0d83 100644
--- 
a/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java
+++ 
b/commons-rdf-integration-tests/src/test/java/org/apache/commons/rdf/integrationtests/AllToAllTest.java
@@ -48,8 +48,8 @@ public class AllToAllTest {
     private final RDF graphFactory;
 
     public AllToAllTest(final Class<? extends RDF> from, final Class<? extends 
RDF> to)
-            throws InstantiationException, IllegalAccessException {
-        this.nodeFactory = from.newInstance();
+            throws ReflectiveOperationException {
+        this.nodeFactory = from.getConstructor().newInstance();
         this.graphFactory = to.newInstance();
     }
 

Reply via email to