--- jsr166/src/extra166y/ParallelArray.java 2013/07/19 19:34:43 1.14 +++ jsr166/src/extra166y/ParallelArray.java 2015/01/18 20:17:32 1.18 @@ -5,6 +5,7 @@ */ package extra166y; + import jsr166y.*; import static extra166y.Ops.*; import java.util.*; @@ -133,7 +134,7 @@ import java.lang.reflect.Array; * public boolean op(Student s) { return s.credits > 90; } * } * static final IsSenior isSenior = new IsSenior(); - * static final class GpaField implements ObjectToDouble<Student> { + * static final class GpaField implements ObjectToDouble<Student> { * public double op(Student s) { return s.gpa; } * } * static final GpaField gpaField = new GpaField(); @@ -526,7 +527,7 @@ public class ParallelArray extends Ab * 2, 3}, and the reducer operation adds numbers, then after * invocation of this method, the contents would be {@code 0, 1, * 3} (that is, {@code 0, 0+1, 0+1+2}, and the return value - * would be 6 (that is, {@code 1+2+3}). + * would be 6 (that is, {@code 1+2+3}). * @param reducer the reducer * @param base the result for an empty array * @return the total reduction @@ -1352,7 +1353,7 @@ public class ParallelArray extends Ab return a; } - public V[] toArray(V a[]) { + public V[] toArray(V[] a) { int len = fence; if (a.length < len) { Class elementType = a.getClass().getComponentType();