You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/02/28 21:56:03 UTC

svn commit: r1075525 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java

Author: mrisaliti
Date: Mon Feb 28 20:56:03 2011
New Revision: 1075525

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

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java?rev=1075525&r1=1075524&r2=1075525&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java Mon Feb 28 20:56:03 2011
@@ -104,7 +104,7 @@ public class Iterate extends MethodOpera
                     return false;
                 }
             }
-        } else if (objList instanceof Collection) {
+        } else if (objList instanceof Collection<?>) {
             Collection<Object> theCollection = UtilGenerics.checkCollection(objList);
 
             if (theCollection.size() == 0) {
@@ -120,7 +120,7 @@ public class Iterate extends MethodOpera
                     return false;
                 }
             }
-        } else if (objList instanceof Iterator) {
+        } else if (objList instanceof Iterator<?>) {
             Iterator<Object> theIterator = UtilGenerics.cast(objList);
             if (!theIterator.hasNext()) {
                 if (Debug.verboseOn()) Debug.logVerbose("List with name " + listAcsr + " has no more entries, doing nothing: " + rawString(), module);