svn commit: r883647 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r883647 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/ObjectType.java

jleroux@apache.org
Author: jleroux
Date: Tue Nov 24 10:29:30 2009
New Revision: 883647

URL: http://svn.apache.org/viewvc?rev=883647&view=rev
Log:
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;
     }