Author: markt
Date: Thu Apr 16 19:59:30 2009
New Revision: 765733
URL: http://svn.apache.org/viewvc?rev=765733&view=rev
Log:
Revert r760963 that added a Java 1.5 dependency
POOL-121 will have to wait for 2.0
Modified:
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java
Modified:
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java
URL:
http://svn.apache.org/viewvc/commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java?rev=765733&r1=765732&r2=765733&view=diff
==============================================================================
---
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java
(original)
+++
commons/proper/pool/trunk/src/java/org/apache/commons/pool/impl/EvictionTimer.java
Thu Apr 16 19:59:30 2009
@@ -37,16 +37,7 @@
class EvictionTimer {
private static Timer _timer;
private static int _usageCount;
- /*
- * _timer is static so there may be one per class loader. Append a unique
- * class loader name to the timer name. Don't use toString() since the
class
- * loader may have overridden that method.
- */
- private static final String TIMER_THREAD_NAME =
- "Commons Pool Eviction Timer for " +
- EvictionTimer.class.getClassLoader().getClass().getName() + "@" +
-
Integer.toHexString(EvictionTimer.class.getClassLoader().getClass().hashCode());
-
+
private EvictionTimer() {
// Hide the default constuctor
}
@@ -62,7 +53,7 @@
*/
static synchronized void schedule(TimerTask task, long delay, long period)
{
if (null == _timer) {
- _timer = new Timer(TIMER_THREAD_NAME, true);
+ _timer = new Timer(true);
}
_usageCount++;
_timer.schedule(task, delay, period);