1
0

Fix compiler warning

This commit is contained in:
Gary Gregory
2023-11-19 11:35:21 -05:00
parent e2f9a3fce8
commit fa9feb0d9e

View File

@@ -996,8 +996,7 @@ public abstract class LogFactory {
* {@code Null} is returned if the URL cannot be opened. * {@code Null} is returned if the URL cannot be opened.
*/ */
private static Properties getProperties(final URL url) { private static Properties getProperties(final URL url) {
final PrivilegedAction action = final PrivilegedAction<Properties> action = () -> {
() -> {
InputStream stream = null; InputStream stream = null;
try { try {
// We must ensure that useCaches is set to false, as the // We must ensure that useCaches is set to false, as the
@@ -1032,7 +1031,7 @@ public abstract class LogFactory {
return null; return null;
}; };
return (Properties) AccessController.doPrivileged(action); return AccessController.doPrivileged(action);
} }
/** /**