Update call deprecated in Java 9
This commit is contained in:
parent
3d7e9d964d
commit
58f4bc15cd
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue