--- jsr166/src/jsr166y/ForkJoinTask.java 2010/11/23 00:10:39 1.70 +++ jsr166/src/jsr166y/ForkJoinTask.java 2010/11/23 10:51:18 1.71 @@ -278,7 +278,7 @@ public abstract class ForkJoinTask im } /** - * Blocks a non-worker-thread until completion or interruption or timeout + * Blocks a non-worker-thread until completion or interruption or timeout. */ private void externalInterruptibleAwaitDone(boolean timed, long nanos) throws InterruptedException { @@ -842,11 +842,12 @@ public abstract class ForkJoinTask im } /** - * Returns {@code true} if the current thread is executing as a - * ForkJoinPool computation. + * Returns {@code true} if the current thread is a {@link + * ForkJoinWorkerThread} executing as a ForkJoinPool computation. * - * @return {@code true} if the current thread is executing as a - * ForkJoinPool computation, or false otherwise + * @return {@code true} if the current thread is a {@link + * ForkJoinWorkerThread} executing as a ForkJoinPool computation, + * or {@code false} otherwise */ public static boolean inForkJoinPool() { return Thread.currentThread() instanceof ForkJoinWorkerThread;