[
https://issues.apache.org/jira/browse/OFBIZ-11833?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pawan Verma closed OFBIZ-11833.
-------------------------------
Fix Version/s: Upcoming Branch
Resolution: Implemented
> Replace anonymous types with lambda expressions
> -----------------------------------------------
>
> Key: OFBIZ-11833
> URL:
https://issues.apache.org/jira/browse/OFBIZ-11833> Project: OFBiz
> Issue Type: Improvement
> Components: ALL COMPONENTS
> Affects Versions: Trunk
> Reporter: Pawan Verma
> Assignee: Pawan Verma
> Priority: Minor
> Fix For: Upcoming Branch
>
> Attachments: OFBIZ-11833-plugins.patch, OFBIZ-11833.patch
>
>
> Generally, something like that:
> {code:java}
> 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;
> }
> });
> {code}
> is replaced with
> {code:java}
> (PrivilegedAction<ClassLoader>) () -> {
> ClassLoader cl = null;
> try
> { cl = Thread.currentThread().getContextClassLoader(); }
> catch (SecurityException e) {
> Debug.logError(e, e.getMessage(), MODULE);
> }
> return cl;
> });
> {code}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)