Fix compiler warning
This commit is contained in:
@@ -1031,8 +1031,7 @@ 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) () -> {
|
||||
return AccessController.doPrivileged((PrivilegedAction<InputStream>) () -> {
|
||||
if (loader != null) {
|
||||
return loader.getResourceAsStream(name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user