[
https://issues.apache.org/jira/browse/OFBIZ-11829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17142202#comment-17142202 ]
ASF subversion and git services commented on OFBIZ-11829:
---------------------------------------------------------
Commit 15c005fa426af8d9fe681e560fa6edd2ce39171e in ofbiz-framework's branch refs/heads/trunk from Pawan Verma
[
https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=15c005f ]
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)