--- jsr166/src/test/tck/ThreadLocalTest.java 2009/08/05 00:40:11 1.8 +++ jsr166/src/test/tck/ThreadLocalTest.java 2009/11/21 10:25:05 1.10 @@ -11,11 +11,11 @@ import java.util.concurrent.Semaphore; public class ThreadLocalTest extends JSR166TestCase { public static void main(String[] args) { - junit.textui.TestRunner.run(suite()); + junit.textui.TestRunner.run(suite()); } public static Test suite() { - return new TestSuite(ThreadLocalTest.class); + return new TestSuite(ThreadLocalTest.class); } static ThreadLocal tl = new ThreadLocal() { @@ -88,18 +88,14 @@ public class ThreadLocalTest extends JSR /** * InheritableThreadLocal propagates generic values. */ - public void testGenericITL() { + public void testGenericITL() throws InterruptedException { final int threadCount = 10; final int x[] = new int[threadCount]; Thread progenitor = new ITLThread(x); - try { - progenitor.start(); - progenitor.join(); - for (int i = 0; i < threadCount; i++) { - assertEquals(i, x[i]); - } - } catch (InterruptedException e) { - unexpectedException(e); + progenitor.start(); + progenitor.join(); + for (int i = 0; i < threadCount; i++) { + assertEquals(i, x[i]); } } }