RFR 8014393: Minor typo in the spec for j.u.stream.Stream.findFirst()

Paul Sandoz paul.sandoz at oracle.com
Wed May 29 11:10:22 UTC 2013


Hi,

Please review these JavaDoc fixes to j.u.s.{Xxxx}Stream.findFirst.

Paul.

# HG changeset patch
# User psandoz
# Date 1369747350 -7200
# Node ID 6be3ce51e61dbdab6766c74223c076a7b3472be6
# Parent  303e9d2aff3cbaf27823b2591f2e8570b77afcce
8014393: Minor typo in the spec for j.u.stream.Stream.findFirst()
Reviewed-by:

diff -r 303e9d2aff3c -r 6be3ce51e61d src/share/classes/java/util/stream/DoubleStream.java
--- a/src/share/classes/java/util/stream/DoubleStream.java	Wed May 29 12:57:53 2013 +0200
+++ b/src/share/classes/java/util/stream/DoubleStream.java	Tue May 28 15:22:30 2013 +0200
@@ -603,7 +603,7 @@
     /**
      * Returns an {@link OptionalDouble} describing the first element of this
      * stream (in the encounter order), or an empty {@code OptionalDouble} if
-     * the stream is empty.  If the stream has no encounter order, than any
+     * the stream is empty.  If the stream has no encounter order, then any
      * element may be returned.
      *
      * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
diff -r 303e9d2aff3c -r 6be3ce51e61d src/share/classes/java/util/stream/IntStream.java
--- a/src/share/classes/java/util/stream/IntStream.java	Wed May 29 12:57:53 2013 +0200
+++ b/src/share/classes/java/util/stream/IntStream.java	Tue May 28 15:22:30 2013 +0200
@@ -588,7 +588,7 @@
     /**
      * Returns an {@link OptionalInt} describing the first element of this
      * stream (in the encounter order), or an empty {@code OptionalInt} if the
-     * stream is empty.  If the stream has no encounter order, than any element
+     * stream is empty.  If the stream has no encounter order, then any element
      * may be returned.
      *
      * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
diff -r 303e9d2aff3c -r 6be3ce51e61d src/share/classes/java/util/stream/LongStream.java
--- a/src/share/classes/java/util/stream/LongStream.java	Wed May 29 12:57:53 2013 +0200
+++ b/src/share/classes/java/util/stream/LongStream.java	Tue May 28 15:22:30 2013 +0200
@@ -588,7 +588,7 @@
     /**
      * Returns an {@link OptionalLong} describing the first element of this
      * stream (in the encounter order), or an empty {@code OptionalLong} if the
-     * stream is empty.  If the stream has no encounter order, than any element
+     * stream is empty.  If the stream has no encounter order, then any element
      * may be returned.
      *
      * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting
diff -r 303e9d2aff3c -r 6be3ce51e61d src/share/classes/java/util/stream/Stream.java
--- a/src/share/classes/java/util/stream/Stream.java	Wed May 29 12:57:53 2013 +0200
+++ b/src/share/classes/java/util/stream/Stream.java	Tue May 28 15:22:30 2013 +0200
@@ -754,7 +754,7 @@
     /**
      * Returns an {@link Optional} describing the first element of this stream
      * (in the encounter order), or an empty {@code Optional} if the stream is
-     * empty.  If the stream has no encounter order, than any element may be
+     * empty.  If the stream has no encounter order, then any element may be
      * returned.
      *
      * <p>This is a <a href="package-summary.html#StreamOps">short-circuiting


More information about the core-libs-dev mailing list