Author: doogie
Date: Wed Oct 17 20:21:59 2007
New Revision: 585818
URL:
http://svn.apache.org/viewvc?rev=585818&view=revLog:
Remove uneeded emptyList/emptyMap in EntityConditionBase.
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBase.java
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionValue.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBase.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBase.java?rev=585818&r1=585817&r2=585818&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBase.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionBase.java Wed Oct 17 20:21:59 2007
@@ -46,9 +46,6 @@
*/
public abstract class EntityConditionBase implements Serializable {
- public static final List emptyList = Collections.unmodifiableList(FastList.newInstance());
- public static final Map emptyMap = Collections.unmodifiableMap(FastMap.newInstance());
-
protected ModelField getField(ModelEntity modelEntity, String fieldName) {
ModelField modelField = null;
if (modelEntity != null) {
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionValue.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionValue.java?rev=585818&r1=585817&r2=585818&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionValue.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/condition/EntityConditionValue.java Wed Oct 17 20:21:59 2007
@@ -19,6 +19,7 @@
package org.ofbiz.entity.condition;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -39,7 +40,7 @@
public void addSqlValue(StringBuilder sql, ModelEntity modelEntity, List entityConditionParams, boolean includeTableNamePrefix,
DatasourceInfo datasourceinfo) {
- addSqlValue(sql, emptyMap, modelEntity, entityConditionParams, includeTableNamePrefix, datasourceinfo);
+ addSqlValue(sql, Collections.emptyMap(), modelEntity, entityConditionParams, includeTableNamePrefix, datasourceinfo);
}
public abstract void addSqlValue(StringBuilder sql, Map tableAliases, ModelEntity modelEntity, List entityConditionParams,