ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrisal...@apache.org
Subject svn commit: r1075525 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/envops/Iterate.java
Date Mon, 28 Feb 2011 20:56:03 GMT
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);



Mime
View raw message