[ 
https://issues.apache.org/jira/browse/OFBIZ-13319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18041447#comment-18041447
 ] 

Dmitriy Kryukov commented on OFBIZ-13319:
-----------------------------------------

PR https://github.com/apache/ofbiz-framework/pull/925

> [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
>            Reporter: Dmitriy Kryukov
>            Priority: Minor
>
> 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