From 33af4b50dc552ddaadf8b9ff9f8c0889ede8c9cb Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 19 Nov 2023 09:38:27 -0500 Subject: [PATCH] Better comment and name --- .../apache/commons/logging/LogFactory.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java index 1452abb..f5b3baf 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -525,16 +525,16 @@ public abstract class LogFactory { try { classLoader = Thread.currentThread().getContextClassLoader(); - } catch (final SecurityException ex) { - /** - * getContextClassLoader() throws SecurityException when - * the context class loader isn't an ancestor of the - * calling class's class loader, or if security - * permissions are restricted. - * - * We ignore this exception to be consistent with the previous - * behavior (e.g. 1.1.3 and earlier). - */ + } catch (final SecurityException ignore) { + // + // getContextClassLoader() throws SecurityException when + // the context class loader isn't an ancestor of the + // calling class's class loader, or if security + // permissions are restricted. + // + // We ignore this exception to be consistent with the previous + // behavior (e.g. 1.1.3 and earlier). + // // ignore }