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 34776ff23aaab932f2cefcdc50a1ec5ac00edaf9 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Wed May 22 17:13:05 2024 -0400 Format nits --- src/main/java/org/apache/commons/logging/LogFactory.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java index a751fdf..ce68c2f 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -508,11 +508,9 @@ public abstract class LogFactory { */ protected static ClassLoader directGetContextClassLoader() throws LogConfigurationException { ClassLoader classLoader = null; - try { classLoader = Thread.currentThread().getContextClassLoader(); } 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 @@ -520,10 +518,7 @@ public abstract class LogFactory { // // We ignore this exception to be consistent with the previous // behavior (e.g. 1.1.3 and earlier). - // - // ignore } - // Return the selected class loader return classLoader; }