1
0

Fix compiler warning

This commit is contained in:
Gary Gregory
2023-11-19 16:06:48 -05:00
parent 0e548f1fb4
commit dd2c1599b2

View File

@@ -430,8 +430,9 @@ public abstract class LogFactory {
storeImplementationClass = WEAK_HASHTABLE_CLASSNAME; storeImplementationClass = WEAK_HASHTABLE_CLASSNAME;
} }
try { try {
final Class implementationClass = Class.forName(storeImplementationClass); final Class<Hashtable<ClassLoader, LogFactory>> implementationClass = (Class<Hashtable<ClassLoader, LogFactory>>) Class
result = (Hashtable) implementationClass.getConstructor().newInstance(); .forName(storeImplementationClass);
result = implementationClass.getConstructor().newInstance();
} catch (final Throwable t) { } catch (final Throwable t) {
handleThrowable(t); // may re-throw t handleThrowable(t); // may re-throw t