[seam-commits] Seam SVN: r9004 - trunk/src/main/org/jboss/seam/framework.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Sep 17 05:42:09 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-09-17 05:42:08 -0400 (Wed, 17 Sep 2008)
New Revision: 9004
Modified:
trunk/src/main/org/jboss/seam/framework/Query.java
Log:
JBSEAM-3392
Modified: trunk/src/main/org/jboss/seam/framework/Query.java
===================================================================
--- trunk/src/main/org/jboss/seam/framework/Query.java 2008-09-17 09:21:39 UTC (rev 9003)
+++ trunk/src/main/org/jboss/seam/framework/Query.java 2008-09-17 09:42:08 UTC (rev 9004)
@@ -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;
@@ -263,7 +264,7 @@
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