This is an automated email from the ASF dual-hosted git repository. mbrohl pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push: new 8897448a61 Bugfix: findList method should return unmodifiable list (OFBIZ -12841) 8897448a61 is described below commit 8897448a610b8b2a521187a62e402379edc0c0d5 Author: Cheng Hu Shan <cheng-hu.s...@ecomify.de> AuthorDate: Thu Jul 27 11:47:49 2023 +0200 Bugfix: findList method should return unmodifiable list (OFBIZ -12841) --- .../entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java b/framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java index 35f4a80f71..1ad455082c 100644 --- a/framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java +++ b/framework/entity/src/main/java/org/apache/ofbiz/entity/GenericDelegator.java @@ -1634,7 +1634,7 @@ public class GenericDelegator implements Delegator { List<GenericValue> cacheList = this.cache.get(entityName, entityCondition, orderBy); if (cacheList != null) { - return cacheList; + return Collections.unmodifiableList(cacheList); } }