You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tv...@apache.org on 2011/10/30 19:07:03 UTC
svn commit: r1195204 -
/commons/proper/jcs/trunk/src/java/org/apache/jcs/engine/PooledCacheEventQueue.java
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() )
{