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 2011/06/01 13:03:51 UTC

svn commit: r1130098 - /commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/IssuesTest.java

Author: sebb
Date: Wed Jun  1 11:03:50 2011
New Revision: 1130098

URL: http://svn.apache.org/viewvc?rev=1130098&view=rev
Log:
Unused

Modified:
    commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/IssuesTest.java

Modified: commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/IssuesTest.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/IssuesTest.java?rev=1130098&r1=1130097&r2=1130098&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/IssuesTest.java (original)
+++ commons/proper/jexl/trunk/src/test/java/org/apache/commons/jexl2/IssuesTest.java Wed Jun  1 11:03:50 2011
@@ -348,7 +348,6 @@ public class IssuesTest extends JexlTest
         Object value = script.evaluate(ctxt);
         assertEquals(Integer.valueOf(11), value);
         long end = System.nanoTime();
-        long millis=end-start;
         double millisec = (end - start) / 1e6;
         double limit = 100.0; // Allow plenty of slack
         assertTrue("Expected parse to take less than "+limit+"ms, actual "+millisec, millisec < limit);
@@ -446,7 +445,7 @@ public class IssuesTest extends JexlTest
         JexlArithmetic arithmetic = new JexlArithmetic(false, MathContext.UNLIMITED, 2);
         JexlEngine jexlX = new JexlEngine(null, arithmetic, null, null);
         try {
-            Object value = jexlX.createExpression("a / b").evaluate(context);
+            jexlX.createExpression("a / b").evaluate(context);
             fail("should fail");
         } catch (JexlException xjexl) {
             //ok  to fail