You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2014/02/20 15:14:31 UTC

svn commit: r1570197 - /cxf/fediz/branches/1.1.x-fixes/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheUtil.java

Author: coheigea
Date: Thu Feb 20 14:14:31 2014
New Revision: 1570197

URL: http://svn.apache.org/r1570197
Log:
Fixing how caches are referenced

Modified:
    cxf/fediz/branches/1.1.x-fixes/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheUtil.java

Modified: cxf/fediz/branches/1.1.x-fixes/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheUtil.java
URL: http://svn.apache.org/viewvc/cxf/fediz/branches/1.1.x-fixes/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheUtil.java?rev=1570197&r1=1570196&r2=1570197&view=diff
==============================================================================
--- cxf/fediz/branches/1.1.x-fixes/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheUtil.java (original)
+++ cxf/fediz/branches/1.1.x-fixes/plugins/core/src/main/java/org/apache/cxf/fediz/core/EHCacheUtil.java Thu Feb 20 14:14:31 2014
@@ -34,7 +34,7 @@ public final class EHCacheUtil {
         CacheConfiguration cc = cacheManager.getConfiguration().getCacheConfigurations().get(key);
         if (cc == null && key.contains("-")) {
             cc = cacheManager.getConfiguration().getCacheConfigurations().get(
-                    key.substring(0, key.lastIndexOf('-') - 1));
+                    key.substring(0, key.lastIndexOf('-')));
         }
         if (cc == null) {
             cc = cacheManager.getConfiguration().getDefaultCacheConfiguration();