8157437: Typos in Stream JavaDoc
Reviewed-by: shade, alanb, lancea
This commit is contained in:
parent
524ec2f1de
commit
65a33061ce
@ -106,7 +106,7 @@ abstract class AbstractTask<P_IN, P_OUT, R,
|
|||||||
protected Spliterator<P_IN> spliterator;
|
protected Spliterator<P_IN> spliterator;
|
||||||
|
|
||||||
/** Target leaf size, common to all tasks in a computation */
|
/** 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.
|
* The left child.
|
||||||
|
@ -211,7 +211,7 @@ public interface DoubleStream extends BaseStream<Double, DoubleStream> {
|
|||||||
* .sum();
|
* .sum();
|
||||||
* }</pre>
|
* }</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
|
* production of some or all the elements (such as with short-circuiting
|
||||||
* operations like {@code findFirst}, or in the example described in
|
* operations like {@code findFirst}, or in the example described in
|
||||||
* {@link #count}), the action will not be invoked for those elements.
|
* {@link #count}), the action will not be invoked for those elements.
|
||||||
|
@ -209,7 +209,7 @@ public interface IntStream extends BaseStream<Integer, IntStream> {
|
|||||||
* .sum();
|
* .sum();
|
||||||
* }</pre>
|
* }</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
|
* production of some or all the elements (such as with short-circuiting
|
||||||
* operations like {@code findFirst}, or in the example described in
|
* operations like {@code findFirst}, or in the example described in
|
||||||
* {@link #count}), the action will not be invoked for those elements.
|
* {@link #count}), the action will not be invoked for those elements.
|
||||||
|
@ -209,7 +209,7 @@ public interface LongStream extends BaseStream<Long, LongStream> {
|
|||||||
* .sum();
|
* .sum();
|
||||||
* }</pre>
|
* }</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
|
* production of some or all the elements (such as with short-circuiting
|
||||||
* operations like {@code findFirst}, or in the example described in
|
* operations like {@code findFirst}, or in the example described in
|
||||||
* {@link #count}), the action will not be invoked for those elements.
|
* {@link #count}), the action will not be invoked for those elements.
|
||||||
|
@ -93,7 +93,7 @@ import java.util.function.UnaryOperator;
|
|||||||
* example of such an optimization, see the API note documented on the
|
* example of such an optimization, see the API note documented on the
|
||||||
* {@link #count} operation. For more detail, see the
|
* {@link #count} operation. For more detail, see the
|
||||||
* <a href="package-summary.html#SideEffects">side-effects</a> section of 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,
|
* <p>Collections and streams, while bearing some superficial similarities,
|
||||||
* have different goals. Collections are primarily concerned with the efficient
|
* 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());
|
* .collect(Collectors.toList());
|
||||||
* }</pre>
|
* }</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
|
* production of some or all the elements (such as with short-circuiting
|
||||||
* operations like {@code findFirst}, or in the example described in
|
* operations like {@code findFirst}, or in the example described in
|
||||||
* {@link #count}), the action will not be invoked for those elements.
|
* {@link #count}), the action will not be invoked for those elements.
|
||||||
|
@ -28,7 +28,6 @@ import java.util.Comparator;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import java.util.Spliterator;
|
import java.util.Spliterator;
|
||||||
import java.util.concurrent.ConcurrentHashMap;
|
import java.util.concurrent.ConcurrentHashMap;
|
||||||
import java.util.concurrent.ForkJoinPool;
|
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
import java.util.function.BooleanSupplier;
|
import java.util.function.BooleanSupplier;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
@ -104,7 +103,7 @@ class StreamSpliterators {
|
|||||||
T_BUFFER buffer;
|
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.
|
* If doing a partial traversal, there may be still elements in buffer.
|
||||||
*/
|
*/
|
||||||
boolean finished;
|
boolean finished;
|
||||||
|
Loading…
Reference in New Issue
Block a user