commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1488614 - /commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java
Date Sat, 01 Jun 2013 21:41:07 GMT
Author: sebb
Date: Sat Jun  1 21:41:07 2013
New Revision: 1488614

URL: http://svn.apache.org/r1488614
Log:
Avoid unnecessary boxing warnings

Modified:
    commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java

Modified: commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java?rev=1488614&r1=1488613&r2=1488614&view=diff
==============================================================================
--- commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java
(original)
+++ commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java
Sat Jun  1 21:41:07 2013
@@ -303,7 +303,7 @@ public class UnifiedJEXLTest extends Jex
 
         UnifiedJEXL.Template t = EL.createTemplate(source);
 
-        vars.put("x", 42);
+        vars.put("x", Integer.valueOf(42));
         strw = new StringWriter();
         t.evaluate(context, strw);
         output = strw.toString();
@@ -329,7 +329,7 @@ public class UnifiedJEXLTest extends Jex
         assertNotNull(dstr);
 
         strw = new StringWriter();
-        t.evaluate(context, strw, 42);
+        t.evaluate(context, strw, Integer.valueOf(42));
         output = strw.toString();
         assertEquals("x is 42\n", output);
 



Mime
View raw message