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-lang.git
The following commit(s) were added to refs/heads/master by this push: new 58f4bc15c Update call deprecated in Java 9 58f4bc15c is described below commit 58f4bc15cdfbd40779c44b1c3dbe541d694e4539 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Mon Oct 2 12:04:12 2023 -0400 Update call deprecated in Java 9 --- .../java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java | 2 +- .../java/org/apache/commons/lang3/reflect/InheritanceUtilsTest.java | 2 +- src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java index 04cc93bcd..56871ae48 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/ConstructorUtilsTest.java @@ -136,7 +136,7 @@ public class ConstructorUtilsTest extends AbstractLangTest { @Test public void testConstructor() throws Exception { - assertNotNull(MethodUtils.class.newInstance()); + assertNotNull(MethodUtils.class.getConstructor().newInstance()); } @Test diff --git a/src/test/java/org/apache/commons/lang3/reflect/InheritanceUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/InheritanceUtilsTest.java index bb32c48b9..d2ec61e4e 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/InheritanceUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/InheritanceUtilsTest.java @@ -32,7 +32,7 @@ public class InheritanceUtilsTest extends AbstractLangTest { @Test public void testConstructor() throws Exception { - assertNotNull(InheritanceUtils.class.newInstance()); + assertNotNull(InheritanceUtils.class.getConstructor().newInstance()); } @Test diff --git a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java index 8a5030f88..c4a9d3031 100644 --- a/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java +++ b/src/test/java/org/apache/commons/lang3/reflect/MethodUtilsTest.java @@ -327,7 +327,7 @@ public class MethodUtilsTest extends AbstractLangTest { @Test public void testConstructor() throws Exception { - assertNotNull(MethodUtils.class.newInstance()); + assertNotNull(MethodUtils.class.getConstructor().newInstance()); } @Test