8157437: Typos in Stream JavaDoc

Reviewed-by: shade, alanb, lancea
This commit is contained in:
Paul Sandoz 2016-05-20 14:07:21 +02:00
parent 524ec2f1de
commit 65a33061ce
6 changed files with 7 additions and 8 deletions

View File

@ -106,7 +106,7 @@ abstract class AbstractTask<P_IN, P_OUT, R,
protected Spliterator<P_IN> spliterator;
/** Target leaf size, common to all tasks in a computation */
protected long targetSize; // may be laziliy initialized
protected long targetSize; // may be lazily initialized
/**
* The left child.

View File

@ -211,7 +211,7 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> {
* .sum();
* }</pre>
*
* <p>In cases where stream implementation is able to optimize away the
* <p>In cases where the stream implementation is able to optimize away the
* production of some or all the elements (such as with short-circuiting
* operations like {@code findFirst}, or in the example described in
* {@link #count}), the action will not be invoked for those elements.

View File

@ -209,7 +209,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
* .sum();
* }</pre>
*
* <p>In cases where stream implementation is able to optimize away the
* <p>In cases where the stream implementation is able to optimize away the
* production of some or all the elements (such as with short-circuiting
* operations like {@code findFirst}, or in the example described in
* {@link #count}), the action will not be invoked for those elements.

View File

@ -209,7 +209,7 @@ public interface LongStream extends BaseStream<Long, LongStream> {
* .sum();
* }</pre>
*
* <p>In cases where stream implementation is able to optimize away the
* <p>In cases where the stream implementation is able to optimize away the
* production of some or all the elements (such as with short-circuiting
* operations like {@code findFirst}, or in the example described in
* {@link #count}), the action will not be invoked for those elements.

View File

@ -93,7 +93,7 @@ import java.util.function.UnaryOperator;
* example of such an optimization, see the API note documented on the
* {@link #count} operation. For more detail, see the
* <a href="package-summary.html#SideEffects">side-effects</a> section of the
* strean package documentation.)
* stream package documentation.)
*
* <p>Collections and streams, while bearing some superficial similarities,
* have different goals. Collections are primarily concerned with the efficient
@ -428,7 +428,7 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
* .collect(Collectors.toList());
* }</pre>
*
* <p>In cases where stream implementation is able to optimize away the
* <p>In cases where the stream implementation is able to optimize away the
* production of some or all the elements (such as with short-circuiting
* operations like {@code findFirst}, or in the example described in
* {@link #count}), the action will not be invoked for those elements.

View File

@ -28,7 +28,6 @@ import java.util.Comparator;
import java.util.Objects;
import java.util.Spliterator;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.BooleanSupplier;
import java.util.function.Consumer;
@ -104,7 +103,7 @@ class StreamSpliterators {
T_BUFFER buffer;
/**
* True if full traversal has occurred (with possible cancelation).
* True if full traversal has occurred (with possible cancellation).
* If doing a partial traversal, there may be still elements in buffer.
*/
boolean finished;