1
0

Format nits

This commit is contained in:
Gary Gregory
2024-05-22 17:13:05 -04:00
parent bd8f345c64
commit 34776ff23a

View File

@@ -508,11 +508,9 @@ public abstract class LogFactory {
*/ */
protected static ClassLoader directGetContextClassLoader() throws LogConfigurationException { protected static ClassLoader directGetContextClassLoader() throws LogConfigurationException {
ClassLoader classLoader = null; ClassLoader classLoader = null;
try { try {
classLoader = Thread.currentThread().getContextClassLoader(); classLoader = Thread.currentThread().getContextClassLoader();
} catch (final SecurityException ignore) { } catch (final SecurityException ignore) {
//
// getContextClassLoader() throws SecurityException when // getContextClassLoader() throws SecurityException when
// the context class loader isn't an ancestor of the // the context class loader isn't an ancestor of the
// calling class's class loader, or if security // calling class's class loader, or if security
@@ -520,10 +518,7 @@ public abstract class LogFactory {
// //
// We ignore this exception to be consistent with the previous // We ignore this exception to be consistent with the previous
// behavior (e.g. 1.1.3 and earlier). // behavior (e.g. 1.1.3 and earlier).
//
// ignore
} }
// Return the selected class loader // Return the selected class loader
return classLoader; return classLoader;
} }