Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Implemented
-
Trunk
-
None
-
None
Description
Generally, something like that:
new PrivilegedAction<ClassLoader>() { @Override public ClassLoader run() { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } catch (SecurityException e) { Debug.logError(e, e.getMessage(), MODULE); } return cl; } });
is replaced with
(PrivilegedAction<ClassLoader>) () -> { ClassLoader cl = null; try { cl = Thread.currentThread().getContextClassLoader(); } catch (SecurityException e) { Debug.logError(e, e.getMessage(), MODULE); } return cl; });