svn commit: r1075540 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java

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

svn commit: r1075540 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java

mrisaliti
Author: mrisaliti
Date: Mon Feb 28 21:27:49 2011
New Revision: 1075540

URL: http://svn.apache.org/viewvc?rev=1075540&view=rev
Log:
Remove some warning in IteratorTag (OFBIZ-4102)

Modified:
    ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java

Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java?rev=1075540&r1=1075539&r2=1075540&view=diff
==============================================================================
--- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java (original)
+++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/taglib/IteratorTag.java Mon Feb 28 21:27:49 2011
@@ -39,6 +39,7 @@ import org.ofbiz.base.util.UtilGenerics;
 /**
  * IterateTag - JSP Tag to iterate over a Collection or any object with an iterator() method.
  */
+@SuppressWarnings("serial")
 public class IteratorTag extends BodyTagSupport {
 
     public static final String module = IteratorTag.class.getName();
@@ -164,7 +165,7 @@ public class IteratorTag extends BodyTag
             if (Debug.verboseOn()) Debug.logVerbose("Getting iterator from property: " + property, module);
             Object propertyObject = pageContext.findAttribute(property);
 
-            if (propertyObject instanceof Iterator) {
+            if (propertyObject instanceof Iterator<?>) {
                 newIterator = UtilGenerics.cast(propertyObject);
             } else {
                 // if ClassCastException, it should indicate looking for a Collection