--- jsr166/src/test/tck/ThreadLocalTest.java 2011/03/15 19:47:07 1.12 +++ jsr166/src/test/tck/ThreadLocalTest.java 2014/12/31 16:44:02 1.14 @@ -7,7 +7,6 @@ */ import junit.framework.*; -import java.util.concurrent.Semaphore; public class ThreadLocalTest extends JSR166TestCase { public static void main(String[] args) { @@ -67,12 +66,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)