You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by mr...@apache.org on 2011/02/28 22:02:37 UTC
svn commit: r1075528 -
/ofbiz/trunk/framework/service/src/org/ofbiz/service/engine/BeanShellEngine.java
Author: mrisaliti
Date: Mon Feb 28 21:02:36 2011
New Revision: 1075528
URL: http://svn.apache.org/viewvc?rev=1075528&view=rev
Log:
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"));
}