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;
}
try {
final Class implementationClass = Class.forName(storeImplementationClass);
result = (Hashtable) implementationClass.getConstructor().newInstance();
final Class<Hashtable<ClassLoader, LogFactory>> implementationClass = (Class<Hashtable<ClassLoader, LogFactory>>) Class
.forName(storeImplementationClass);
result = implementationClass.getConstructor().newInstance();
} catch (final Throwable t) {
handleThrowable(t); // may re-throw t