Update call deprecated in Java 9

This commit is contained in:
Gary Gregory committed 2023-10-02 12:05:29 -04:00
1 parent 176a1462a8
commit 260d5e2177
3 files changed
+4 -4

No files matched your search

@@ -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()) {