--- jsr166/src/test/loops/LinkedAsyncAction.java 2012/11/26 06:32:28 1.10 +++ jsr166/src/test/loops/LinkedAsyncAction.java 2015/01/15 18:42:39 1.15 @@ -40,7 +40,7 @@ import java.util.concurrent.atomic.*; *
* class GraphVisitor extends LinkedAsyncAction { * final Node node; - * GraphVisitor(GraphVistor parent, Node node) { + * GraphVisitor(GraphVisitor parent, Node node) { * super(parent); this.node = node; * } * protected void compute() { @@ -69,7 +69,6 @@ public abstract class LinkedAsyncAction static final AtomicIntegerFieldUpdatercontrolStateUpdater = AtomicIntegerFieldUpdater.newUpdater(LinkedAsyncAction.class, "controlState"); - /** * Parent to notify on completion */ @@ -157,7 +156,7 @@ public abstract class LinkedAsyncAction * default version of this method does nothing and returns * {@code true}. * @return true if this task's exception should be propagated to - * this task's parent. + * this task's parent */ protected boolean onException() { return true; @@ -205,14 +204,14 @@ public abstract class LinkedAsyncAction * Completes this task abnormally. Unless this task already * cancelled or aborted, upon invocation, this method invokes * {@code onException}, and then, depending on its return value, - * completees parent (if one exists) exceptionally or normally. To + * completes parent (if one exists) exceptionally or normally. To * avoid unbounded exception loops, this method aborts if an * exception is encountered in any {@code onException} * invocation. * @param ex the exception to throw when joining this task * @throws NullPointerException if ex is null * @throws Throwable if any invocation of - * {@code onException} does so. + * {@code onException} does so */ public final void completeExceptionally(Throwable ex) { LinkedAsyncAction a = this; @@ -231,7 +230,7 @@ public abstract class LinkedAsyncAction /** * Returns this task's parent, or null if none. - * @return this task's parent, or null if none. + * @return this task's parent, or null if none */ public final LinkedAsyncAction getParent() { return parent; @@ -239,7 +238,7 @@ public abstract class LinkedAsyncAction /** * Returns the number of subtasks that have not yet completed. - * @return the number of subtasks that have not yet completed. + * @return the number of subtasks that have not yet completed */ public final int getPendingSubtaskCount() { return getControlState(); @@ -340,5 +339,4 @@ public abstract class LinkedAsyncAction controlStateUpdater.decrementAndGet(this); } - }