This is an automated email from the ASF dual-hosted git repository.

henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new 2255bb35 JEXL-414: added performance tests; - added another JexlCache 
implementation for testing; - only kept one implementation as default;
2255bb35 is described below

commit 2255bb3584e4102e401b15ab1f888f9169ad8bc8
Author: Henri Biestro <hbies...@cloudera.com>
AuthorDate: Thu Nov 23 16:42:47 2023 +0100

    JEXL-414: added performance tests;
    - added another JexlCache implementation for testing;
    - only kept one implementation as default;
---
 src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java 
b/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
index 4906f988..86c23052 100644
--- a/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
+++ b/src/test/java/org/apache/commons/jexl3/CachePerformanceTest.java
@@ -124,7 +124,7 @@ public class CachePerformanceTest {
             for (int c = 0; c < CACHED; ++c) {
               final int ctl = rnd.nextInt(SCRIPTS);
               for (int r = 0; r < HIT; ++r) {
-                JexlScript script = jexl.createScript(Integer.toString(ctl) + 
" + 42 - 42");
+                JexlScript script = jexl.createScript(Integer.toString(ctl));
                 Object result = script.execute(null);
                 assert ((Number) result).intValue() == ctl;
                 count += 1;

Reply via email to