Author: manik.surtani(a)jboss.com
Date: 2008-08-05 06:56:29 -0400 (Tue, 05 Aug 2008)
New Revision: 6510
Modified:
core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java
Log:
removed unnecessary brittle reflection call
Modified: core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java 2008-08-05
10:50:47 UTC (rev 6509)
+++
core/trunk/src/test/java/org/jboss/cache/util/internals/EvictionController.java 2008-08-05
10:56:29 UTC (rev 6510)
@@ -5,14 +5,13 @@
import org.jboss.cache.Fqn;
import org.jboss.cache.Region;
import org.jboss.cache.RegionManager;
-import org.jboss.cache.util.TestingUtil;
import org.jboss.cache.config.EvictionConfig;
import org.jboss.cache.config.EvictionRegionConfig;
import org.jboss.cache.eviction.EvictionTimerTask;
import org.jboss.cache.eviction.LRUConfiguration;
+import org.jboss.cache.util.TestingUtil;
import java.lang.reflect.Method;
-import java.util.Timer;
/**
* when used on a cache will disable defaul eviction behavior and it will supply means of
kicking off evction
@@ -40,8 +39,7 @@
{
throw new IllegalStateException("No timer task!!!");
}
- Timer evictionThread = (Timer) TestingUtil.extractField(timerTask,
"evictionThread");
- evictionThread.cancel();
+ timerTask.stop();
}
public void startEviction()
Show replies by date