[seam-commits] Seam SVN: r9415 - branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/framework.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Fri Oct 24 06:55:18 EDT 2008


Author: manaRH
Date: 2008-10-24 06:55:18 -0400 (Fri, 24 Oct 2008)
New Revision: 9415

Modified:
   branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/framework/Query.java
Log:
JBPAPP-1301

Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/framework/Query.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/framework/Query.java	2008-10-24 10:49:57 UTC (rev 9414)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/framework/Query.java	2008-10-24 10:55:18 UTC (rev 9415)
@@ -1,6 +1,7 @@
 package org.jboss.seam.framework;
 
 import java.util.ArrayList;
+import java.util.Collection;
 import java.util.List;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
@@ -251,7 +252,8 @@
    
    protected boolean isRestrictionParameterSet(Object parameterValue)
    {
-      return parameterValue!=null && !"".equals(parameterValue);
+      return parameterValue != null && !"".equals(parameterValue) && parameterValue instanceof Collection ? !((Collection) parameterValue).isEmpty() : true;
+
    }
 
    /**




More information about the seam-commits mailing list