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:38:06 UTC
[2/3] 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/1f6dea5a
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/1f6dea5a
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/1f6dea5a
Branch: refs/heads/2.6.x-fixes
Commit: 1f6dea5acad04d421b9401088a5c4f727c67e871
Parents: 6627bee
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:29:11 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/1f6dea5a/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 1c51c0c..2d8ac10 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
@@ -209,10 +209,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());
}
}
}