[ 
https://issues.apache.org/jira/browse/OFBIZ-13319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jacques Le Roux closed OFBIZ-13319.
-----------------------------------
    Resolution: Fixed

> [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)

Reply via email to