svn commit: r1078184 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1078184 - /ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java

mrisaliti
Author: mrisaliti
Date: Fri Mar  4 22:34:17 2011
New Revision: 1078184

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

Modified:
    ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java

Modified: ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java?rev=1078184&r1=1078183&r2=1078184&view=diff
==============================================================================
--- ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java (original)
+++ ofbiz/trunk/framework/widget/src/org/ofbiz/widget/form/ModelFormAction.java Fri Mar  4 22:34:17 2011
@@ -406,7 +406,7 @@ public abstract class ModelFormAction {
                 String listName = resultMapListNameExdr.expandString(context);
                 Object listObj = result.get(listName);
                 if (listObj != null) {
-                    if (!(listObj instanceof List) && !(listObj instanceof ListIterator)) {
+                    if (!(listObj instanceof List<?>) && !(listObj instanceof ListIterator<?>)) {
                         throw new IllegalArgumentException("Error in form [" + this.modelForm.getName() + "] calling service with name [" + serviceNameExpanded + "]: the result that is supposed to be a List or ListIterator and is not.");
                     }
                     context.put("listName", listName);