You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Pawan Verma (Jira)" <ji...@apache.org> on 2020/06/17 11:42:00 UTC
[jira] [Created] (OFBIZ-11829) Replace for-loop with forEach loop
Pawan Verma created OFBIZ-11829:
-----------------------------------
Summary: 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
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)