[jira] [Commented] (OFBIZ-11831) Replace Iterator.remove() with Collection.removeIf()

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-11831) Replace Iterator.remove() with Collection.removeIf()

Nicolas Malin (Jira)

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

ASF subversion and git services commented on OFBIZ-11831:
---------------------------------------------------------

Commit 7f67a493f0407038623826bd63d14d1a6b47621b in ofbiz-framework's branch refs/heads/trunk from Pawan Verma
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=7f67a49 ]

Improved: Replace Iterator.remove() with Collection.removeIf().(OFBIZ-11831)

From Java8 we have Collection.removeIf() method works by applying the condition provided in the Predicate instance to all the elements in the Collection on which it is invoked. The elements which satisfy the condition are retained while the remaining are removed from the Collection.


> Replace Iterator.remove() with Collection.removeIf()
> ----------------------------------------------------
>
>                 Key: OFBIZ-11831
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11831
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Pawan Verma
>            Assignee: Pawan Verma
>            Priority: Minor
>         Attachments: OFBIZ-11831.patch
>
>
> From Java8 we have Collection.removeIf() method works by applying the condition provided in the Predicate instance to all the elements in the Collection on which it is invoked. The elements which satisfy the condition are retained while the remaining are removed from the Collection.



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