commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1207366 - /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl2/JexlEngine.java
Date Mon, 28 Nov 2011 16:12:12 GMT
Author: sebb
Date: Mon Nov 28 16:12:12 2011
New Revision: 1207366

URL: http://svn.apache.org/viewvc?rev=1207366&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=1207366&r1=1207365&r2=1207366&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 Mon Nov
28 16:12:12 2011
@@ -998,7 +998,7 @@ public class JexlEngine {
                 parms = parameters.length;
                 namedRegisters = new LinkedHashMap<String, Integer>();
                 for (int p = 0; p < parms; ++p) {
-                    namedRegisters.put(parameters[p], p);
+                    namedRegisters.put(parameters[p], Integer.valueOf(p));
                 }
             } else {
                 parms = 0;
@@ -1103,7 +1103,7 @@ public class JexlEngine {
                 String[] pa = new String[parms];
                 int p = 0;
                 for (Map.Entry<String, Integer> entry : namedRegisters.entrySet())
{
-                    if (entry.getValue() < parms) {
+                    if (entry.getValue().intValue() < parms) {
                         pa[p++] = entry.getKey();
                     }
                 }
@@ -1122,7 +1122,7 @@ public class JexlEngine {
                 String[] pa = new String[parms];
                 int p = 0;
                 for (Map.Entry<String, Integer> entry : namedRegisters.entrySet())
{
-                    if (entry.getValue() >= parms) {
+                    if (entry.getValue().intValue() >= parms) {
                         pa[p++] = entry.getKey();
                     }
                 }



Mime
View raw message