Author: mrisaliti
Date: Fri Mar 4 22:17:54 2011
New Revision: 1078175
URL:
http://svn.apache.org/viewvc?rev=1078175&view=revLog:
Remove some warning in ModelForm (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java
Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java?rev=1078175&r1=1078174&r2=1078175&view=diff==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelForm.java Fri Mar 4 22:17:54 2011
@@ -1371,9 +1371,9 @@ public class ModelForm extends ModelWidg
}
// if list is empty, do not render rows
Iterator<?> iter = null;
- if (obj instanceof Iterator) {
+ if (obj instanceof Iterator<?>) {
iter = (Iterator<?>) obj;
- } else if (obj instanceof List) {
+ } else if (obj instanceof List<?>) {
iter = ((List<?>) obj).listIterator();
}
@@ -1434,9 +1434,9 @@ public class ModelForm extends ModelWidg
}
// if list is empty, do not render rows
Iterator<?> iter = null;
- if (obj instanceof Iterator) {
+ if (obj instanceof Iterator<?>) {
iter = (Iterator<?>) obj;
- } else if (obj instanceof List) {
+ } else if (obj instanceof List<?>) {
iter = ((List<?>) obj).listIterator();
}
@@ -2624,7 +2624,7 @@ public class ModelForm extends ModelWidg
Debug.logError(e, "Error getting list size", module);
listSize = 0;
}
- } else if (entryList instanceof List) {
+ } else if (entryList instanceof List<?>) {
List<?> items = (List<?>) entryList;
listSize = items.size();
}