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
*/
protected static ClassLoader getClassLoader(final Class clazz) {
protected static ClassLoader getClassLoader(final Class<?> clazz) {
try {
return clazz.getClassLoader();
} catch (final SecurityException ex) {
if (isDiagnosticsEnabled()) {
logDiagnostic("Unable to get classloader for class '" + clazz +
"' due to security restrictions - " + ex.getMessage());
logDiagnostic("Unable to get classloader for class '" + clazz + "' due to security restrictions - " + ex.getMessage());
}
throw ex;
}