svn commit: r1075530 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java

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

svn commit: r1075530 - /ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java

mrisaliti
Author: mrisaliti
Date: Mon Feb 28 21:05:02 2011
New Revision: 1075530

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

Modified:
    ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java

Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java?rev=1075530&r1=1075529&r2=1075530&view=diff
==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/HttpEngine.java Mon Feb 28 21:05:02 2011
@@ -82,7 +82,7 @@ public class HttpEngine extends GenericA
         Map<String, Object> result = null;
         try {
             Object res = XmlSerializer.deserialize(postResult, dctx.getDelegator());
-            if (res instanceof Map)
+            if (res instanceof Map<?, ?>)
                 result = UtilGenerics.checkMap(res);
             else
                 throw new GenericServiceException("Result not an instance of Map.");
@@ -129,7 +129,7 @@ public class HttpEngine extends GenericA
             if (xmlContext != null) {
                 try {
                     Object o = XmlSerializer.deserialize(xmlContext, delegator);
-                    if (o instanceof Map)
+                    if (o instanceof Map<?, ?>)
                         context = UtilGenerics.checkMap(o);
                     else {
                         Debug.logError("Context not an instance of Map error", module);