[jira] [Commented] (OFBIZ-11829) Replace for-loop with forEach loop

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

[jira] [Commented] (OFBIZ-11829) Replace for-loop with forEach loop

Nicolas Malin (Jira)

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

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

Commit 8dd7f302472eea98852c168a3796c32fe1c09259 in ofbiz-plugins's branch refs/heads/trunk from Pawan Verma
[ https://gitbox.apache.org/repos/asf?p=ofbiz-plugins.git;h=8dd7f30 ]

Improved: Replace for-loop with forEach loop(OFBIZ-11829)

Also modified some checkstyle issues.

Set checkstyleMain.maxErrors to 26684 (-61)

Thanks: Jacques for the review.


> Replace for-loop with forEach loop
> ----------------------------------
>
>                 Key: OFBIZ-11829
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11829
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: Trunk
>            Reporter: Pawan Verma
>            Assignee: Pawan Verma
>            Priority: Minor
>         Attachments: OFBIZ-11829-plugins.patch, OFBIZ-11829.patch
>
>
> Replace for-loop with a forEach loop
>  
> {code:java}
> List<String> topics = new LinkedList<>();
> for (int i = 0; i < topicList.size(); i++) {
>     GenericValue assoc = topicList.get(i);
> {code}
> Replace with
>  
> {code:java}
> for (GenericValue assoc : topicList) {
> {code}



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