Author: tv Date: Sun Dec 18 20:31:55 2016 New Revision: 1774942 URL: http://svn.apache.org/viewvc?rev=1774942&view=rev Log: Remove redundant data
Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/memory/AbstractMemoryCache.java Modified: commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/memory/AbstractMemoryCache.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/memory/AbstractMemoryCache.java?rev=1774942&r1=1774941&r2=1774942&view=diff ============================================================================== --- commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/memory/AbstractMemoryCache.java (original) +++ commons/proper/jcs/trunk/commons-jcs-core/src/main/java/org/apache/commons/jcs/engine/memory/AbstractMemoryCache.java Sun Dec 18 20:31:55 2016 @@ -49,9 +49,6 @@ public abstract class AbstractMemoryCach /** Log instance */ private static final Log log = LogFactory.getLog( AbstractMemoryCache.class ); - /** The region name. This defines a namespace of sorts. */ - private String cacheName; - /** Cache Attributes. Regions settings. */ private ICompositeCacheAttributes cacheAttributes; @@ -80,7 +77,6 @@ public abstract class AbstractMemoryCach lock.lock(); try { - this.cacheName = hub.getCacheName(); this.cacheAttributes = hub.getCacheAttributes(); this.cache = hub; map = createMap(); @@ -173,14 +169,14 @@ public abstract class AbstractMemoryCach { if ( log.isDebugEnabled() ) { - log.debug( cacheName + ": MemoryCache quiet hit for " + key ); + log.debug( getCacheName() + ": MemoryCache quiet hit for " + key ); } ce = me.getCacheElement(); } else if ( log.isDebugEnabled() ) { - log.debug( cacheName + ": MemoryCache quiet miss for " + key ); + log.debug( getCacheName() + ": MemoryCache quiet miss for " + key ); } return ce; @@ -272,7 +268,7 @@ public abstract class AbstractMemoryCach { return attributeCacheName; } - return cacheName; + return cache.getCacheName(); } /**