Author: tv
Date: Sun Oct 30 18:07:02 2011
New Revision: 1195204

URL: http://svn.apache.org/viewvc?rev=1195204&view=rev
Log:
Avoid assigning a parameter

Modified:
    
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/PooledCacheEventQueue.java

Modified: 
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/PooledCacheEventQueue.java
URL: 
http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/PooledCacheEventQueue.java?rev=1195204&r1=1195203&r2=1195204&view=diff
==============================================================================
--- 
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/PooledCacheEventQueue.java
 (original)
+++ 
commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/PooledCacheEventQueue.java
 Sun Oct 30 18:07:02 2011
@@ -90,11 +90,8 @@ public class PooledCacheEventQueue
         this.waitBeforeRetry = waitBeforeRetry <= 0 ? 500 : waitBeforeRetry;
 
         // this will share the same pool with other event queues by default.
-        if ( threadPoolName == null )
-        {
-            threadPoolName = "cache_event_queue";
-        }
-        pool = ThreadPoolManager.getInstance().getPool( threadPoolName );
+        pool = ThreadPoolManager.getInstance().getPool(
+                (threadPoolName == null) ? "cache_event_queue" : 
threadPoolName );
 
         if ( log.isDebugEnabled() )
         {


Reply via email to