5 |
|
* http://creativecommons.org/publicdomain/zero/1.0/ |
6 |
|
*/ |
7 |
|
|
8 |
< |
import junit.framework.*; |
8 |
> |
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
9 |
> |
|
10 |
> |
import java.util.concurrent.CountDownLatch; |
11 |
|
import java.util.concurrent.locks.Lock; |
12 |
|
import java.util.concurrent.locks.StampedLock; |
13 |
< |
import java.util.concurrent.CountDownLatch; |
14 |
< |
import static java.util.concurrent.TimeUnit.MILLISECONDS; |
15 |
< |
import java.util.*; |
14 |
< |
import java.util.concurrent.*; |
13 |
> |
|
14 |
> |
import junit.framework.Test; |
15 |
> |
import junit.framework.TestSuite; |
16 |
|
|
17 |
|
public class StampedLockTest extends JSR166TestCase { |
18 |
|
public static void main(String[] args) { |