Fix compiler warning
This commit is contained in:
@@ -556,13 +556,12 @@ public abstract class LogFactory {
|
|||||||
*
|
*
|
||||||
* @since 1.1
|
* @since 1.1
|
||||||
*/
|
*/
|
||||||
protected static ClassLoader getClassLoader(final Class clazz) {
|
protected static ClassLoader getClassLoader(final Class<?> clazz) {
|
||||||
try {
|
try {
|
||||||
return clazz.getClassLoader();
|
return clazz.getClassLoader();
|
||||||
} catch (final SecurityException ex) {
|
} catch (final SecurityException ex) {
|
||||||
if (isDiagnosticsEnabled()) {
|
if (isDiagnosticsEnabled()) {
|
||||||
logDiagnostic("Unable to get classloader for class '" + clazz +
|
logDiagnostic("Unable to get classloader for class '" + clazz + "' due to security restrictions - " + ex.getMessage());
|
||||||
"' due to security restrictions - " + ex.getMessage());
|
|
||||||
}
|
}
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user