This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-logging.git
commit 33af4b50dc552ddaadf8b9ff9f8c0889ede8c9cb Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Nov 19 09:38:27 2023 -0500 Better comment and name --- .../java/org/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 }