changeset 7330:9335085d6529

Doc typos. Contributed-by: david.holmes@oracle.com
author briangoetz
date Thu, 14 Feb 2013 11:24:23 -0500
parents d2982a5d8327
children 381122300995 3cdc9b98ad98
files src/share/classes/java/util/stream/StreamOpFlag.java
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/stream/StreamOpFlag.java	Thu Feb 14 15:42:54 2013 +0100
+++ b/src/share/classes/java/util/stream/StreamOpFlag.java	Thu Feb 14 11:24:23 2013 -0500
@@ -29,7 +29,7 @@
 
 /**
  * Flags corresponding to characteristics of streams and operations. Flags are utilized by the stream
- * framework to to control, specialize or simplify computation.
+ * framework to control, specialize or simplify computation.
  *
  * <p>
  * A stream may have one or more characteristics from the set of {@link #DISTINCT},
@@ -41,8 +41,8 @@
  *
  * <p>
  * With the exception of
- * {@link #PARALLEL} stream characteristics can be derived from the equivalent
- * {@link java.util.Spliterator} characteristics, {@link java.util.Spliterator#DISTINCT},
+ * {@link #PARALLEL}, stream characteristics can be derived from the equivalent
+ * {@link java.util.Spliterator} characteristics: {@link java.util.Spliterator#DISTINCT},
  * {@link java.util.Spliterator#SORTED}, {@link java.util.Spliterator#ORDERED}, and
  * {@link java.util.Spliterator#SIZED}. A spliterator characteristics bit set can be converted to stream flags
  * using the method {@link #fromCharacteristics(int)} and converted back using {@link #toCharacteristics(int)}.
@@ -70,7 +70,7 @@
  * also present on the output.
  * If a characteristic is cleared then if that characteristic is present on the input it is
  * not present on the output.
- * If a characteristic is injected then that characteristic is present output, regardless of whether
+ * If a characteristic is injected then that characteristic is present on the output, regardless of whether
  * the characteristic was present or not on the input.
  *
  * A unioned bit set of stream and operation characteristics, referred to as operation flags,
@@ -121,7 +121,7 @@
  * Those flags can then be used to apply optimizations. For example, if {@code SIZED.isKnown(flags)} returns true
  * then the stream size remains constant throughout the pipeline, this information can be utilized to pre-allocate data
  * structures and combined with {@link java.util.Spliterator#SUBSIZED} that information can be utilized to perform
- * concurrent in place updates into a shared array.
+ * concurrent in-place updates into a shared array.
  *
  */
 // @@@ When a new flag is added what should happen for existing operations?