--- old/src/share/classes/java/util/stream/AbstractPipeline.java 2013-07-08 15:37:57.637818945 -0700 +++ new/src/share/classes/java/util/stream/AbstractPipeline.java 2013-07-08 15:37:57.453818948 -0700 @@ -53,11 +53,6 @@ * operation, the stream is considered to be consumed, and no more intermediate * or terminal operations are permitted on this stream instance. * - *

{@code AbstractPipeline} implements a number of methods that are - * specified in {@link BaseStream}, though it does not implement - * {@code BaseStream} directly. Subclasses of {@code AbstractPipeline} - * will generally implement {@code BaseStream}. - * * @implNote *

For sequential streams, and parallel streams without * stateful intermediate @@ -75,7 +70,7 @@ * @since 1.8 */ abstract class AbstractPipeline> - extends PipelineHelper { + extends PipelineHelper implements BaseStream { /** * Backlink to the head of the pipeline chain (self if this is the source * stage). @@ -286,26 +281,20 @@ // BaseStream - /** - * Implements {@link BaseStream#sequential()} - */ + @Override public final S sequential() { sourceStage.parallel = false; return (S) this; } - /** - * Implements {@link BaseStream#parallel()} - */ + @Override public final S parallel() { sourceStage.parallel = true; return (S) this; } // Primitive specialization use co-variant overrides, hence is not final - /** - * Implements {@link BaseStream#spliterator()} - */ + @Override public Spliterator spliterator() { if (linkedOrConsumed) throw new IllegalStateException("stream has already been operated upon"); @@ -331,9 +320,7 @@ } } - /** - * Implements {@link BaseStream#isParallel()} - */ + @Override public final boolean isParallel() { return sourceStage.parallel; }