changeset 16505:d9f0d05b7b32

8157437: Typos in Stream JavaDoc Reviewed-by: shade, alanb, lancea
author psandoz
date Fri, 20 May 2016 14:07:21 +0200
parents b15047a04378
children 248c2f34cc1f
files src/java.base/share/classes/java/util/stream/AbstractTask.java src/java.base/share/classes/java/util/stream/DoubleStream.java src/java.base/share/classes/java/util/stream/IntStream.java src/java.base/share/classes/java/util/stream/LongStream.java src/java.base/share/classes/java/util/stream/Stream.java src/java.base/share/classes/java/util/stream/StreamSpliterators.java
diffstat 6 files changed, 7 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/share/classes/java/util/stream/AbstractTask.java	Fri May 20 03:33:57 2016 -0700
+++ b/src/java.base/share/classes/java/util/stream/AbstractTask.java	Fri May 20 14:07:21 2016 +0200
@@ -106,7 +106,7 @@
     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.
--- a/src/java.base/share/classes/java/util/stream/DoubleStream.java	Fri May 20 03:33:57 2016 -0700
+++ b/src/java.base/share/classes/java/util/stream/DoubleStream.java	Fri May 20 14:07:21 2016 +0200
@@ -211,7 +211,7 @@
      *         .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.
--- a/src/java.base/share/classes/java/util/stream/IntStream.java	Fri May 20 03:33:57 2016 -0700
+++ b/src/java.base/share/classes/java/util/stream/IntStream.java	Fri May 20 14:07:21 2016 +0200
@@ -209,7 +209,7 @@
      *         .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.
--- a/src/java.base/share/classes/java/util/stream/LongStream.java	Fri May 20 03:33:57 2016 -0700
+++ b/src/java.base/share/classes/java/util/stream/LongStream.java	Fri May 20 14:07:21 2016 +0200
@@ -209,7 +209,7 @@
      *         .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.
--- a/src/java.base/share/classes/java/util/stream/Stream.java	Fri May 20 03:33:57 2016 -0700
+++ b/src/java.base/share/classes/java/util/stream/Stream.java	Fri May 20 14:07:21 2016 +0200
@@ -93,7 +93,7 @@
  * 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 @@
      *         .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.
--- a/src/java.base/share/classes/java/util/stream/StreamSpliterators.java	Fri May 20 03:33:57 2016 -0700
+++ b/src/java.base/share/classes/java/util/stream/StreamSpliterators.java	Fri May 20 14:07:21 2016 +0200
@@ -28,7 +28,6 @@
 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 @@
         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;