--- jsr166/src/jsr166y/ForkJoinTask.java 2009/08/02 17:02:06 1.28 +++ jsr166/src/jsr166y/ForkJoinTask.java 2009/08/02 22:28:23 1.30 @@ -698,7 +698,7 @@ public abstract class ForkJoinTask im * *

This method may be overridden in subclasses, but if so, must * still ensure that these minimal properties hold. In particular, - * the cancel method itself must not throw exceptions. + * the {@code cancel} method itself must not throw exceptions. * *

This method is designed to be invoked by other * tasks. To terminate the current task, you can just return or @@ -727,8 +727,8 @@ public abstract class ForkJoinTask im /** * Returns the exception thrown by the base computation, or a - * CancellationException if cancelled, or null if none or if the - * method has not yet completed. + * {@code CancellationException} if cancelled, or {@code null} if + * none or if the method has not yet completed. * * @return the exception, or {@code null} if none */ @@ -884,8 +884,8 @@ public abstract class ForkJoinTask im * this task, but only if reuse occurs when this task has either * never been forked, or has been forked, then completed and all * outstanding joins of this task have also completed. Effects - * under any other usage conditions are not guaranteed, and are - * discouraged. This method may be useful when executing + * under any other usage conditions are not guaranteed. + * This method may be useful when executing * pre-constructed trees of subtasks in loops. */ public void reinitialize() { @@ -965,7 +965,7 @@ public abstract class ForkJoinTask im * ForkJoinTask computations (as may be determined using method * {@link #inForkJoinPool}). Attempts to invoke in other contexts * result in exceptions or errors, possibly including - * ClassCastException. * + * ClassCastException. * @return the surplus number of tasks, which may be negative */ public static int getSurplusQueuedTaskCount() {