--- jsr166/src/test/loops/CancelledLockLoops.java 2009/11/02 23:42:46 1.5 +++ jsr166/src/test/loops/CancelledLockLoops.java 2009/11/02 23:55:36 1.6 @@ -51,7 +51,7 @@ public final class CancelledLockLoops { threads[i] = new Thread(this); for (int i = 0; i < threads.length; ++i) threads[i].start(); - Thread[] cancels = (Thread[]) (threads.clone()); + Thread[] cancels = threads.clone(); Collections.shuffle(Arrays.asList(cancels), rng); barrier.await(); Thread.sleep(TIMEOUT);