You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/11/19 16:56:25 UTC
(commons-logging) 06/14: Fix compiler warning
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 544ef7cfe65361c58768da3095cb5c7110b6b1f8
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Nov 19 11:47:13 2023 -0500
Fix compiler warning
---
src/main/java/org/apache/commons/logging/LogFactory.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/logging/LogFactory.java b/src/main/java/org/apache/commons/logging/LogFactory.java
index 6d02843..d7ead49 100644
--- a/src/main/java/org/apache/commons/logging/LogFactory.java
+++ b/src/main/java/org/apache/commons/logging/LogFactory.java
@@ -702,8 +702,7 @@ public abstract class LogFactory {
* attempting to get the context classloader.
*/
private static ClassLoader getContextClassLoaderInternal() throws LogConfigurationException {
- return (ClassLoader)AccessController.doPrivileged(
- (PrivilegedAction) LogFactory::directGetContextClassLoader);
+ return AccessController.doPrivileged((PrivilegedAction<ClassLoader>) LogFactory::directGetContextClassLoader);
}
/**