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
The following commit(s) were added to refs/heads/master by this push:
new fa9feb0 Fix compiler warning
fa9feb0 is described below
commit fa9feb0d9e7d93674252fe199467605a0b4f4a51
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 19 11:35:21 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 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<Properties> 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);
}
/**