[ 
https://issues.apache.org/jira/browse/IGNITE-13069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17164362#comment-17164362
 ] 

Ignite TC Bot commented on IGNITE-13069:
----------------------------------------

{panel:title=Branch: [pull/8063/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/8063/head] Base: [master] : No new tests 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}{panel}
[TeamCity *--> Run :: Basic Tests* 
Results|https://ci.ignite.apache.org/viewLog.html?buildId=5487741&buildTypeId=IgniteTests24Java8_RunBasicTests]

> Rewrite creation of IgniteInClosure and IgniteOutClosure as lambda expression
> -----------------------------------------------------------------------------
>
>                 Key: IGNITE-13069
>                 URL: https://issues.apache.org/jira/browse/IGNITE-13069
>             Project: Ignite
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 2.8.1
>            Reporter: Nikolay Izhikov
>            Assignee: Konstantin Sirotkin
>            Priority: Trivial
>              Labels: newbie
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> We can use lambda expression instead of direct instantiation of 
> IgniteInClosure, IgniteOutClosure.
> This:
> {code:java}
>         state = new DirectMessageState<>(StateItem.class, new 
> IgniteOutClosure<StateItem>() {
>             @Override public StateItem apply() {
>                 return new StateItem(msgFactory, protoVer);
>             }
>         });
> {code}
> Can be replaced with:
> {code:java}
>         state = new DirectMessageState<>(StateItem.class, () -> new 
> StateItem(msgFactory, protoVer));
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to