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

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

commit c3d7bdd6a255eefd3d96011bb18b3904fae2c33f
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jun 1 10:18:23 2024 -0400

    Use final
---
 src/main/java/org/apache/commons/jexl3/internal/Engine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/org/apache/commons/jexl3/internal/Engine.java 
b/src/main/java/org/apache/commons/jexl3/internal/Engine.java
index 40122577..4dc8658e 100644
--- a/src/main/java/org/apache/commons/jexl3/internal/Engine.java
+++ b/src/main/java/org/apache/commons/jexl3/internal/Engine.java
@@ -360,7 +360,7 @@ public class Engine extends JexlEngine {
         this.scriptFeatures = new 
JexlFeatures(features).script(true).namespaceTest(nsTest);
         this.charset = conf.charset();
         // caching:
-        IntFunction<JexlCache<?, ?>> factory = conf.cacheFactory();
+        final IntFunction<JexlCache<?, ?>> factory = conf.cacheFactory();
         this.cacheFactory = factory == null ? SoftCache::new : factory;
         this.cache = (JexlCache<Source, ASTJexlScript>) (conf.cache() > 0 ? 
factory.apply(conf.cache()) : null);
         this.cacheThreshold = conf.cacheThreshold();

Reply via email to