commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1135687 - /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java
Date Tue, 14 Jun 2011 16:36:33 GMT
Author: sebb
Date: Tue Jun 14 16:36:32 2011
New Revision: 1135687

URL: http://svn.apache.org/viewvc?rev=1135687&view=rev
Log:
Explicit boxing

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java?rev=1135687&r1=1135686&r2=1135687&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java (original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java Tue Jun
14 16:36:32 2011
@@ -276,7 +276,7 @@ public class JexlEngine {    
      */
     public void setLenient(boolean flag) {
         if (arithmetic instanceof JexlThreadedArithmetic) {
-            JexlThreadedArithmetic.setLenient(flag);
+            JexlThreadedArithmetic.setLenient(Boolean.valueOf(flag));
         } else if (flag != isLenient()) {
             logger.warn("setLenient only has an effect when using a JexlThreadedArithmetic");
         }
@@ -845,7 +845,7 @@ public class JexlEngine {    
                 if (names != null) {
                     Map<String, Integer> params = new HashMap<String, Integer>();
                     for(int n = 0; n < names.length; ++n) {
-                        params.put(names[n], n);
+                        params.put(names[n], Integer.valueOf(n));
                     }
                     parser.setNamedRegisters(params);
                 }



Mime
View raw message