Author: mrisaliti
Date: Mon Feb 28 21:04:00 2011
New Revision: 1075529
URL:
http://svn.apache.org/viewvc?rev=1075529&view=revLog:
Remove some warning in BSFEngine (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BSFEngine.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BSFEngine.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BSFEngine.java?rev=1075529&r1=1075528&r2=1075529&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BSFEngine.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BSFEngine.java Mon Feb 28 21:04:00 2011
@@ -61,7 +61,7 @@ public class BSFEngine extends GenericAs
public Map<String, Object> runSync(String localName, ModelService modelService, Map<String, Object> context) throws GenericServiceException {
Object result = serviceInvoker(localName, modelService, context);
- if (result == null || !(result instanceof Map))
+ if (result == null || !(result instanceof Map<?, ?>))
throw new GenericServiceException("Service did not return expected result");
return UtilGenerics.checkMap(result);
}