1
0

Fix compiler warning

This commit is contained in:
Gary Gregory
2023-11-19 16:09:58 -05:00
parent ab478d1a0f
commit 0b8c564674

View File

@@ -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;
} }