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 128cd4295177c0b9280eb6a6896550654d15342c Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sun Nov 19 11:45:48 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 938ac63..12bd2f8 100644 --- a/src/main/java/org/apache/commons/logging/LogFactory.java +++ b/src/main/java/org/apache/commons/logging/LogFactory.java @@ -1083,9 +1083,8 @@ public abstract class LogFactory { * info to access data that should not be available to it. */ private static String getSystemProperty(final String key, final String def) - throws SecurityException { - return (String) AccessController.doPrivileged( - (PrivilegedAction) () -> System.getProperty(key, def)); + throws SecurityException { + return AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty(key, def)); }