Dmitriy Kryukov created OFBIZ-13319:
---------------------------------------
Summary: [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
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)