Author: mrisaliti
Date: Fri Mar 4 22:19:09 2011
New Revision: 1078176
URL:
http://svn.apache.org/viewvc?rev=1078176&view=revLog:
Remove some warning in IterateSectionWidget (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java?rev=1078176&r1=1078175&r2=1078176&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/screen/IterateSectionWidget.java Fri Mar 4 22:19:09 2011
@@ -115,12 +115,12 @@ public class IterateSectionWidget extend
return;
}
List<?> theList = null;
- if (obj instanceof Map) {
+ if (obj instanceof Map<?, ?>) {
Set<Map.Entry<String, Object>> entrySet = UtilGenerics.<Map<String, Object>>cast(obj).entrySet();
Object [] a = entrySet.toArray();
theList = Arrays.asList(a);
isEntrySet = true;
- } else if (obj instanceof List) {
+ } else if (obj instanceof List<?>) {
theList = (List<?>)obj;
} else {
Debug.logError("Object not list or map type", module);