ofbiz-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrisal...@apache.org
Subject svn commit: r1075524 - /ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java
Date Mon, 28 Feb 2011 20:51:20 GMT
Author: mrisaliti
Date: Mon Feb 28 20:51:20 2011
New Revision: 1075524

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

Modified:
    ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java

Modified: ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java?rev=1075524&r1=1075523&r2=1075524&view=diff
==============================================================================
--- ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java (original)
+++ ofbiz/trunk/framework/minilang/src/org/ofbiz/minilang/method/callops/CallBsh.java Mon
Feb 28 20:51:20 2011
@@ -102,7 +102,7 @@ public class CallBsh extends MethodOpera
                         Object resourceResult = bsh.eval(outSb.toString());
 
                         // if map is returned, copy values into env
-                        if ((resourceResult != null) && (resourceResult instanceof
Map)) {
+                        if ((resourceResult != null) && (resourceResult instanceof
Map<?, ?>)) {
                             methodContext.putAllEnv(UtilGenerics.<String, Object>checkMap(resourceResult));
                         }
                     } catch (IOException e) {
@@ -117,7 +117,7 @@ public class CallBsh extends MethodOpera
             if (Debug.verboseOn()) Debug.logVerbose("Result of inline BSH script: " + inlineResult,
module);
 
             // if map is returned, copy values into env
-            if ((inlineResult != null) && (inlineResult instanceof Map)) {
+            if ((inlineResult != null) && (inlineResult instanceof Map<?, ?>))
{
                 methodContext.putAllEnv(UtilGenerics.<String, Object>checkMap(inlineResult));
             }
         } catch (EvalError e) {



Mime
View raw message