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-jcs.git

commit 9b85c65504d8d7dfd994933ccf8e2a4c3cc64bed
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Tue Jul 9 19:23:09 2024 -0400

    Use final
---
 .../org/apache/commons/jcs3/auxiliary/disk/AbstractDiskCache.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/AbstractDiskCache.java
 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/AbstractDiskCache.java
index 892485b9..a051462f 100644
--- 
a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/AbstractDiskCache.java
+++ 
b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/auxiliary/disk/AbstractDiskCache.java
@@ -427,7 +427,7 @@ public abstract class AbstractDiskCache<K, V>
             return null;
         }
 
-        PurgatoryElement<K, V> pe = purgatory.get( key );
+        final PurgatoryElement<K, V> pe = purgatory.get( key );
 
         // If the element was found in purgatory
         if ( pe != null )
@@ -538,7 +538,7 @@ public abstract class AbstractDiskCache<K, V>
         throws IOException
     {
         // this avoids locking purgatory, but it uses more memory
-        Set<K> keyArray = new HashSet<>(purgatory.keySet());
+        final Set<K> keyArray = new HashSet<>(purgatory.keySet());
 
         final Set<K> matchingKeys = 
getKeyMatcher().getMatchingKeysFromArray(pattern, keyArray);
 
@@ -674,7 +674,7 @@ public abstract class AbstractDiskCache<K, V>
     {
         // I'm getting the object, so I can lock on the element
         // Remove element from purgatory if it is there
-        PurgatoryElement<K, V> pe = purgatory.remove( key );
+        final PurgatoryElement<K, V> pe = purgatory.remove( key );
         boolean present;
 
         if ( pe != null )

Reply via email to