changeset 7574:f9bbfe0e351d

docs nits.
author mduigou
date Thu, 07 Mar 2013 15:08:27 -0800
parents ec95dfc8b12c
children 4ae1942a996d
files src/share/classes/java/util/Spliterators.java src/share/classes/java/util/stream/package-info.java
diffstat 2 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Spliterators.java	Thu Mar 07 14:04:02 2013 -0500
+++ b/src/share/classes/java/util/Spliterators.java	Thu Mar 07 15:08:27 2013 -0800
@@ -194,8 +194,8 @@
 
     /**
      * Returns a new basic Spliterator using the given collection's
-     * {@link java.util.Collection#iterator()) for traversal, and reporting its
-     * {@link java.util.Collection#size()) as its initial size.  The spliterator
+     * {@link java.util.Collection#iterator()} for traversal, and reporting its
+     * {@link java.util.Collection#size()} as its initial size.  The spliterator
      * implements {@code trySplit} to permit limited parallelism.
      *
      * @param c the collection
@@ -332,7 +332,7 @@
     }
 
     // Iterators from Spliterators
-    
+
     public static<T> Iterator<T> iteratorFromSpliterator(Spliterator<? extends T> spliterator) {
         class Adapter implements Iterator<T>, Consumer<T> {
             boolean valueReady = false;
--- a/src/share/classes/java/util/stream/package-info.java	Thu Mar 07 14:04:02 2013 -0500
+++ b/src/share/classes/java/util/stream/package-info.java	Thu Mar 07 15:08:27 2013 -0800
@@ -95,8 +95,8 @@
  *
  * <p>For example, consider the following code:
  * <pre>
- *     List<String> l = new ArrayList(Arrays.asList("one", "two"));
- *     Stream<String> sl = l.stream();
+ *     List&lt;String> l = new ArrayList(Arrays.asList("one", "two"));
+ *     Stream&lt;String> sl = l.stream();
  *     l.add("three");
  *     String s = sl.collect(toStringJoiner(" ")).toString();
  * </pre>
@@ -106,11 +106,11 @@
  * the result will be a string of "one two three". However, if the list is modified after the terminal operation
  * commences, as in:
  * <pre>
- *     List<String> l = new ArrayList(Arrays.asList("one", "two"));
- *     Stream<String> sl = l.stream();
+ *     List&lt;String> l = new ArrayList(Arrays.asList("one", "two"));
+ *     Stream&lt;String> sl = l.stream();
  *     String s = sl.peek(s -> l.add("BAD LAMBDA")).collect(toStringJoiner(" ")).toString();
  * </pre>
- * then a {@code ConcurrentModificationException} will be thrown since the {@code peek) operation will attempt
+ * then a {@code ConcurrentModificationException} will be thrown since the {@code peek} operation will attempt
  * to add the string "BAD LAMBDA" to the list after the terminal operation has commenced.
  *
  * <p>If a source cannot directly supply a lazy {@code Spliterator}, then it may lazily supply a non-lazy
@@ -192,7 +192,7 @@
  *
  * <h2>Non-interference</h2>
  *
- * @@@ Multiple forms of interference: mutating source from outside, mutating source from lambda,
+ * XXX Multiple forms of interference: mutating source from outside, mutating source from lambda,
  * lambdas sharing mutable state
  *
  * <h2>Side-effects</h2>