Author: mrisaliti
Date: Mon Feb 28 21:26:51 2011
New Revision: 1075539
URL:
http://svn.apache.org/viewvc?rev=1075539&view=revLog:
Remove some warning in IfTag (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IfTag.java
Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IfTag.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IfTag.java?rev=1075539&r1=1075538&r2=1075539&view=diff==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IfTag.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IfTag.java Mon Feb 28 21:26:51 2011
@@ -31,6 +31,7 @@ import org.ofbiz.base.util.Debug;
/**
* IfTag - Conditional Tag.
*/
+@SuppressWarnings("serial")
public class IfTag extends BodyTagSupport {
public static final String module = IfTag.class.getName();
@@ -95,7 +96,7 @@ public class IfTag extends BodyTagSuppor
int localSize = size.intValue();
try {
- if (object instanceof Collection) {
+ if (object instanceof Collection<?>) {
// the object is a Collection so compare the size.
if (((Collection<?>) object).size() > localSize)
return EVAL_BODY_AGAIN;