Fix compiler warning
This commit is contained in:
@@ -1083,9 +1083,8 @@ public abstract class LogFactory {
|
|||||||
* info to access data that should not be available to it.
|
* info to access data that should not be available to it.
|
||||||
*/
|
*/
|
||||||
private static String getSystemProperty(final String key, final String def)
|
private static String getSystemProperty(final String key, final String def)
|
||||||
throws SecurityException {
|
throws SecurityException {
|
||||||
return (String) AccessController.doPrivileged(
|
return AccessController.doPrivileged((PrivilegedAction<String>) () -> System.getProperty(key, def));
|
||||||
(PrivilegedAction) () -> System.getProperty(key, def));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user