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 4d4c5907fb12c16f0b48fae0a48431b0c684cb7e Author: Gary Gregory <[email protected]> AuthorDate: Mon Nov 10 06:07:35 2025 -0500 Use final --- src/main/java/org/apache/commons/jexl3/internal/MetaCache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/jexl3/internal/MetaCache.java b/src/main/java/org/apache/commons/jexl3/internal/MetaCache.java index 28b49de4..14744f7f 100644 --- a/src/main/java/org/apache/commons/jexl3/internal/MetaCache.java +++ b/src/main/java/org/apache/commons/jexl3/internal/MetaCache.java @@ -58,7 +58,7 @@ final class MetaCache { @SuppressWarnings("unchecked") <K, V> JexlCache<K, V> createCache(final int capacity) { if (capacity > 0) { - JexlCache<K, V> cache = (JexlCache<K, V>) factory.apply(capacity); + final JexlCache<K, V> cache = (JexlCache<K, V>) factory.apply(capacity); if (cache != null) { synchronized (references) { // The reference is created with the queue for automatic cleanup @@ -77,8 +77,8 @@ final class MetaCache { */ void clearCaches() { synchronized (references) { - for (Reference<JexlCache<?, ?>> ref : references) { - JexlCache<?, ?> cache = ref.get(); + for (final Reference<JexlCache<?, ?>> ref : references) { + final JexlCache<?, ?> cache = ref.get(); if (cache != null) { cache.clear(); }
