1
0

Update call deprecated in Java 9

This commit is contained in:
Gary Gregory
2023-10-02 12:05:29 -04:00
parent 176a1462a8
commit 260d5e2177
3 changed files with 4 additions and 4 deletions

View File

@@ -197,7 +197,7 @@ public class LoadTestCase extends TestCase{
private void execute(final Class cls) throws Exception {
cls.newInstance();
cls.getConstructor().newInstance();
}
@Override

View File

@@ -182,7 +182,7 @@ public class SecurityForbiddenTestCase extends TestCase
private Object loadClass(final String name, final ClassLoader classLoader) {
try {
final Class clazz = classLoader.loadClass(name);
final Object obj = clazz.newInstance();
final Object obj = clazz.getConstructor().newInstance();
return obj;
} catch ( final Exception e ) {
final StringWriter sw = new StringWriter();