You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2013/06/01 23:41:07 UTC

svn commit: r1488614 - /commons/proper/jexl/branches/2.0/src/test/java/org/apache/commons/jexl2/UnifiedJEXLTest.java

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);