Author: mrisaliti
Date: Mon Feb 28 20:56:03 2011
New Revision: 1075525
URL:
http://svn.apache.org/viewvc?rev=1075525&view=revLog:
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);