[
https://issues.apache.org/jira/browse/OFBIZ-13319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041493#comment-18041493
]
ASF subversion and git services commented on OFBIZ-13319:
---------------------------------------------------------
Commit 9139c41ae35bdf0834761d9ccf4862a90485828e in ofbiz-framework's branch
refs/heads/trunk from Dmitry Kryukov
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=9139c41ae3 ]
Improved: [optimization] There are several locations where in the loop we can
exit early (OFBIZ-13319) #925
It concerns loops where the only action is searching for match.
For example:
for (String packageFilter : packageFilterSet) {
if (packageName.contains(packageFilter)) {
foundMatch = true;
break; // to be added
}
}
Thanks: Dmitriy Kryukov
Signed-off-by: Dmitry Kryukov <[email protected]>
> [optimization] There are several locations where in the loop we can exit early
> ------------------------------------------------------------------------------
>
> Key: OFBIZ-13319
> URL: https://issues.apache.org/jira/browse/OFBIZ-13319
> Project: OFBiz
> Issue Type: Improvement
> Components: framework/entity, framework/webapp, product
> Affects Versions: Upcoming Branch
> Reporter: Dmitriy Kryukov
> Assignee: Jacques Le Roux
> Priority: Minor
> Fix For: Upcoming Branch
>
>
> It concerns loops where the only action is searching for match.
> For example:
> for (String packageFilter : packageFilterSet) {
> if (packageName.contains(packageFilter)) {
> foundMatch = true;
> break; // to be added
> }
> }
> I'm going to provide a PR
--
This message was sent by Atlassian Jira
(v8.20.10#820010)