--- jsr166/src/jsr166y/CountedCompleter.java 2012/11/24 03:56:07 1.18 +++ jsr166/src/jsr166y/CountedCompleter.java 2012/11/26 05:46:55 1.24 @@ -126,14 +126,14 @@ package jsr166y; * op.apply(array[lo]); * tryComplete(); * } - * } } + * }} * * This design can be improved by noticing that in the recursive case, * the task has nothing to do after forking its right task, so can * directly invoke its left task before returning. (This is an analog * of tail recursion removal.) Also, because the task returns upon * executing its left task (rather than falling through to invoke - * tryComplete) the pending count is set to one: + * {@code tryComplete}) the pending count is set to one: * *
 {@code
  * class ForEach ...
@@ -277,12 +277,12 @@ package jsr166y;
  *   }
  *   public void onCompletion(CountedCompleter caller) {
  *     if (caller != this) {
- *      MapReducer child = (MapReducer)caller;
- *      MapReducer sib = child.sibling;
- *      if (sib == null || sib.result == null)
- *        result = child.result;
- *      else
- *        result = reducer.apply(child.result, sib.result);
+ *       MapReducer child = (MapReducer)caller;
+ *       MapReducer sib = child.sibling;
+ *       if (sib == null || sib.result == null)
+ *         result = child.result;
+ *       else
+ *         result = reducer.apply(child.result, sib.result);
  *     }
  *   }
  *   public E getRawResult() { return result; }
@@ -291,7 +291,7 @@ package jsr166y;
  *     return new MapReducer(null, array, mapper, reducer,
  *                              0, array.length).invoke();
  *   }
- * } }
+ * }} * * Here, method {@code onCompletion} takes a form common to many * completion designs that combine results. This callback-style method @@ -303,7 +303,7 @@ package jsr166y; * distinguishes cases. Most often, when the caller is {@code this}, * no action is necessary. Otherwise the caller argument can be used * (usually via a cast) to supply a value (and/or links to other - * values) to be combined. Asuuming proper use of pending counts, the + * values) to be combined. Assuming proper use of pending counts, the * actions inside {@code onCompletion} occur (once) upon completion of * a task and its subtasks. No additional synchronization is required * within this method to ensure thread safety of accesses to fields of @@ -388,7 +388,7 @@ public abstract class CountedCompleter completer, @@ -401,7 +401,7 @@ public abstract class CountedCompleter completer) { this.completer = completer; @@ -422,7 +422,7 @@ public abstract class CountedCompleter caller) { return true; @@ -661,7 +661,7 @@ public abstract class CountedCompleter a = this, s = a; @@ -671,7 +671,7 @@ public abstract class CountedCompleter