You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2017/06/14 16:40:57 UTC
svn commit: r1798714 -
/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java
Author: tv
Date: Wed Jun 14 16:40:57 2017
New Revision: 1798714
URL: http://svn.apache.org/viewvc?rev=1798714&view=rev
Log:
Make sure that attributes are cloned every time
Modified:
commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java
Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java
URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java?rev=1798714&r1=1798713&r2=1798714&view=diff
==============================================================================
--- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java (original)
+++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/control/CompositeCacheManager.java Wed Jun 14 16:40:57 2017
@@ -527,7 +527,7 @@ public class CompositeCacheManager
@Override
public <K, V> CompositeCache<K, V> getCache( String cacheName )
{
- return getCache( cacheName, this.defaultCacheAttr.clone() );
+ return getCache( cacheName, getDefaultCacheAttributes() );
}
/**
@@ -540,7 +540,7 @@ public class CompositeCacheManager
public <K, V> CompositeCache<K, V> getCache( String cacheName, ICompositeCacheAttributes cattr )
{
cattr.setCacheName( cacheName );
- return getCache( cattr, this.defaultElementAttr );
+ return getCache( cattr, getDefaultElementAttributes() );
}
/**
@@ -565,7 +565,7 @@ public class CompositeCacheManager
*/
public <K, V> CompositeCache<K, V> getCache( ICompositeCacheAttributes cattr )
{
- return getCache( cattr, this.defaultElementAttr );
+ return getCache( cattr, getDefaultElementAttributes() );
}
/**