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

@@ -329,7 +329,7 @@ public abstract class LogFactory {
}
try {
final Class implementationClass = Class.forName(storeImplementationClass);
result = (Hashtable) implementationClass.newInstance();
result = (Hashtable) implementationClass.getConstructor().newInstance();
} catch (final Throwable t) {
handleThrowable(t); // may re-throw t
@@ -1046,7 +1046,7 @@ public abstract class LogFactory {
}
}
return (LogFactory) logFactoryClass.newInstance();
return (LogFactory) logFactoryClass.getConstructor().newInstance();
} catch (final ClassNotFoundException ex) {
if (classLoader == thisClassLoaderRef.get()) {