--- jsr166/src/test/tck/ThreadLocalTest.java 2011/03/15 19:47:07 1.12 +++ jsr166/src/test/tck/ThreadLocalTest.java 2014/12/31 20:29:13 1.16 @@ -6,8 +6,8 @@ * Pat Fisher, Mike Judd. */ -import junit.framework.*; -import java.util.concurrent.Semaphore; +import junit.framework.Test; +import junit.framework.TestSuite; public class ThreadLocalTest extends JSR166TestCase { public static void main(String[] args) { @@ -67,12 +67,12 @@ public class ThreadLocalTest extends JSR child = new ITLThread(x); child.start(); } - Thread.currentThread().yield(); + Thread.yield(); int threadId = itl.get().intValue(); for (int j = 0; j < threadId; j++) { x[threadId]++; - Thread.currentThread().yield(); + Thread.yield(); } if (child != null) { // Wait for child (if any) @@ -90,7 +90,7 @@ public class ThreadLocalTest extends JSR */ public void testGenericITL() throws InterruptedException { final int threadCount = 10; - final int x[] = new int[threadCount]; + final int[] x = new int[threadCount]; Thread progenitor = new ITLThread(x); progenitor.start(); progenitor.join();