You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/12/23 00:14:23 UTC
svn commit: r893340 -
/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java
Author: doogie
Date: Tue Dec 22 23:14:22 2009
New Revision: 893340
URL: http://svn.apache.org/viewvc?rev=893340&view=rev
Log:
Make the map passed to convert read-only.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java?rev=893340&r1=893339&r2=893340&view=diff
==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelViewEntity.java Tue Dec 22 23:14:22 2009
@@ -599,7 +599,7 @@
Debug.logVerbose(this + ":" + conversions, module);
}
- public List<Map<String, Object>> convert(String fromEntityName, Map<String, Object> data) {
+ public List<Map<String, Object>> convert(String fromEntityName, Map<String, ? extends Object> data) {
Map<String, ModelConversion> conversions = this.conversions.get(fromEntityName);
if (conversions == null) return null;
List<Map<String, Object>> values = FastList.newInstance();
@@ -1122,7 +1122,7 @@
return aliasName + "(" + fromModelEntity.getEntityName() + ")";
}
- public Map<String, Object> convert(Map<String, Object> values) {
+ public Map<String, Object> convert(Map<String, ? extends Object> values) {
Map<String, Object> newValues = FastMap.newInstance();
for (Map.Entry<String, String> entry: fieldMap.entrySet()) {
newValues.put(entry.getValue(), values.get(entry.getKey()));