You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2025/11/29 14:45:00 UTC

[jira] [Closed] (OFBIZ-13319) [optimization] There are several locations where in the loop we can exit early

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