Fix compiler warning
This commit is contained in:
@@ -233,10 +233,8 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static InputStream getResourceAsStream(final String name) {
|
private static InputStream getResourceAsStream(final String name) {
|
||||||
return (InputStream)AccessController.doPrivileged(
|
return AccessController.doPrivileged((PrivilegedAction<InputStream>) () -> {
|
||||||
(PrivilegedAction) () -> {
|
|
||||||
final ClassLoader threadCL = getContextClassLoader();
|
final ClassLoader threadCL = getContextClassLoader();
|
||||||
|
|
||||||
if (threadCL != null) {
|
if (threadCL != null) {
|
||||||
return threadCL.getResourceAsStream(name);
|
return threadCL.getResourceAsStream(name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user