cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/3] git commit: Fix PMD issue
Date Mon, 30 Jun 2014 17:38:06 GMT
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 <dkulp@apache.org>
Authored: Mon Jun 30 13:16:35 2014 -0400
Committer: Daniel Kulp <dkulp@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());
                     }
                 }                
             }


Mime
View raw message