[
https://issues.apache.org/jira/browse/OFBIZ-11833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17143653#comment-17143653 ]
ASF subversion and git services commented on OFBIZ-11833:
---------------------------------------------------------
Commit 57fd870878f36311740e65f1a43f0de99d9919bd in ofbiz-plugins's branch refs/heads/trunk from Pawan Verma
[
https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=57fd870 ]
Improved: Replace anonymous types with lambda expressions(OFBIZ-11833)
> 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
> 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)