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 0b8c5646740a9f6f0397cb82a9beb1ec1b1e3cbd Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Nov 19 16:09:58 2023 -0500 Fix compiler warning --- src/main/java/org/apache/commons/logging/LogFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java index 42ae752..9a7dd3f 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -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; }