Fix compiler warning
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user