Fix compiler warning
This commit is contained in:
1 parent
0e548f1fb4
commit
dd2c1599b2
1 file changed
+3
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user