Author: mrisaliti
Date: Mon Feb 28 21:02:36 2011
New Revision: 1075528
URL:
http://svn.apache.org/viewvc?rev=1075528&view=revLog:
Remove some warning in BeanShellEngine (OFBIZ-4102)
Modified:
ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BeanShellEngine.java
Modified: ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BeanShellEngine.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BeanShellEngine.java?rev=1075528&r1=1075527&r2=1075528&view=diff==============================================================================
--- ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BeanShellEngine.java (original)
+++ ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BeanShellEngine.java Mon Feb 28 21:02:36 2011
@@ -70,10 +70,10 @@ public final class BeanShellEngine exten
try {
Object resultObj = BshUtil.runBshAtLocation(location, context);
- if (resultObj != null && resultObj instanceof Map) {
+ if (resultObj != null && resultObj instanceof Map<?, ?>) {
Debug.logInfo("Got result Map from script return: " + resultObj, module);
return cast(resultObj);
- } else if (context.get("result") != null && context.get("result") instanceof Map) {
+ } else if (context.get("result") != null && context.get("result") instanceof Map<?, ?>) {
Debug.logInfo("Got result Map from context: " + resultObj, module);
return cast(context.get("result"));
}