From fa9feb0d9e7d93674252fe199467605a0b4f4a51 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 19 Nov 2023 11:35:21 -0500 Subject: [PATCH] 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 a024670..324e6ff 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -996,8 +996,7 @@ public abstract class LogFactory { * {@code Null} is returned if the URL cannot be opened. */ private static Properties getProperties(final URL url) { - final PrivilegedAction action = - () -> { + final PrivilegedAction action = () -> { InputStream stream = null; try { // We must ensure that useCaches is set to false, as the @@ -1032,7 +1031,7 @@ public abstract class LogFactory { return null; }; - return (Properties) AccessController.doPrivileged(action); + return AccessController.doPrivileged(action); } /**