Author: jleroux
Date: Tue Nov 24 10:29:30 2009
New Revision: 883647
URL:
http://svn.apache.org/viewvc?rev=883647&view=revLog:
Complete r883634 : allows to check isEmpty() on a CharSequence
Modified:
ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java
Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java?rev=883647&r1=883646&r2=883647&view=diff==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java Tue Nov 24 10:29:30 2009
@@ -768,6 +768,10 @@
if (((Map<?,?>) value).size() == 0) {
return true;
}
+ } else if (value instanceof CharSequence) {
+ if (((CharSequence) value).length() == 0) {
+ return true;
+ }
}
return false;
}