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 cc9c84c3a5cc7b23c72013b7fe7bdca7db7f7280 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Tue Jul 9 19:34:48 2024 -0400 Use diamonds Remove useless parens --- .../java/org/apache/commons/jcs3/engine/control/CompositeCache.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCache.java b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCache.java index 1ecb3036..fbcd5dda 100644 --- a/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCache.java +++ b/commons-jcs3-core/src/main/java/org/apache/commons/jcs3/engine/control/CompositeCache.java @@ -662,7 +662,7 @@ public class CompositeCache<K, V> { final Map<K, ICacheElement<K, V>> elements = new HashMap<>(); - for (ListIterator<AuxiliaryCache<K, V>> i = auxCaches.listIterator(auxCaches.size()); i.hasPrevious();) + for (final ListIterator<AuxiliaryCache<K, V>> i = auxCaches.listIterator(auxCaches.size()); i.hasPrevious();) { final AuxiliaryCache<K, V> aux = i.previous(); @@ -1031,7 +1031,7 @@ public class CompositeCache<K, V> final long timeFactorForMilliseconds = attributes.getTimeFactorForMilliseconds(); - if (maxLifeSeconds != -1 && (timestamp - createTime) > (maxLifeSeconds * timeFactorForMilliseconds)) + if (maxLifeSeconds != -1 && timestamp - createTime > maxLifeSeconds * timeFactorForMilliseconds) { log.debug("Exceeded maxLife: {0}", element::getKey); @@ -1354,7 +1354,7 @@ public class CompositeCache<K, V> { aux.update(ce); } - catch (IOException e) + catch (final IOException e) { log.warn("Failure saving element {0} to aux {1}.", ce, aux, e); }