Author: manik.surtani(a)jboss.com
Date: 2008-06-25 09:16:45 -0400 (Wed, 25 Jun 2008)
New Revision: 6020
Modified:
core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java
Log:
Updated this not to use deprecated/removed classes
Modified:
core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java
===================================================================
---
core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java 2008-06-25
13:16:27 UTC (rev 6019)
+++
core/trunk/src/test/java/org/jboss/cache/lock/ReentrantWriterPreferenceReadWriteLockTest.java 2008-06-25
13:16:45 UTC (rev 6020)
@@ -18,8 +18,7 @@
@Test(groups = {"functional"})
public class ReentrantWriterPreferenceReadWriteLockTest
{
- // ReentrantWriterPreferenceReadWriteLock lock;
- SimpleReadWriteLock lock;
+ ReentrantReadWriteLock lock;
Lock rl, wl;
Exception thread_ex = null;
@@ -27,7 +26,7 @@
public void setUp() throws Exception
{
// lock=new ReentrantWriterPreferenceReadWriteLock();
- lock = new SimpleReadWriteLock();
+ lock = new ReentrantReadWriteLock();
rl = lock.readLock();
wl = lock.writeLock();
thread_ex = null;
Show replies by date