Update call deprecated in Java 9

This commit is contained in:
Gary Gregory 2023-10-02 12:04:12 -04:00
parent 3d7e9d964d
commit 58f4bc15cd
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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