1
0

Fix compiler warning

This commit is contained in:
Gary Gregory
2023-11-19 11:42:25 -05:00
parent 7af5ec6b03
commit e8b4e383ac

View File

@@ -1031,13 +1031,12 @@ public abstract class LogFactory {
* run the operation using an AccessController.
*/
private static InputStream getResourceAsStream(final ClassLoader loader, final String name) {
return (InputStream)AccessController.doPrivileged(
(PrivilegedAction) () -> {
if (loader != null) {
return loader.getResourceAsStream(name);
}
return ClassLoader.getSystemResourceAsStream(name);
});
return AccessController.doPrivileged((PrivilegedAction<InputStream>) () -> {
if (loader != null) {
return loader.getResourceAsStream(name);
}
return ClassLoader.getSystemResourceAsStream(name);
});
}
/**