You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2014/06/30 19:28:17 UTC
[3/4] git commit: Fix PMD issue
Fix PMD issue
Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/c518d5b2
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/c518d5b2
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/c518d5b2
Branch: refs/heads/2.7.x-fixes
Commit: c518d5b2130edca8b79e1b0cd9cb05cee382d77d
Parents: 4031f53
Author: Daniel Kulp <dk...@apache.org>
Authored: Mon Jun 30 13:16:35 2014 -0400
Committer: Daniel Kulp <dk...@apache.org>
Committed: Mon Jun 30 13:17:18 2014 -0400
----------------------------------------------------------------------
.../apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cxf/blob/c518d5b2/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
index 4270934..d6b59ee 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/tokenstore/EHCacheTokenStore.java
@@ -208,10 +208,9 @@ public class EHCacheTokenStore implements TokenStore, Closeable, BusLifeCycleLis
// this step is especially important for global shared cache manager
if (cache != null) {
synchronized (cache) {
- if (cache instanceof RefCountCache) {
- if (((RefCountCache)cache).decrementAndGet() == 0) {
- cacheManager.removeCache(cache.getName());
- }
+ if (cache instanceof RefCountCache
+ && ((RefCountCache)cache).decrementAndGet() == 0) {
+ cacheManager.removeCache(cache.getName());
}
}
}