changeset 8109:08889da5cb6b

docs cleanup
author mduigou
date Fri, 12 Apr 2013 19:02:18 -0700
parents dffa8d964b0f
children 30fe64d93b06
files src/share/classes/java/util/Map.java src/share/classes/java/util/stream/Collectors.java
diffstat 2 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/java/util/Map.java	Fri Apr 12 18:56:44 2013 -0700
+++ b/src/share/classes/java/util/Map.java	Fri Apr 12 19:02:18 2013 -0700
@@ -918,7 +918,7 @@
      *
      * <pre> {@code
      * map.compute(key, (k, v) -> (v == null) ? msg : v.concat(msg))}</pre>
-     * (Method {@link #merge} is often simpler to use for such purposes.)
+     * (Method {@link #merge merge()} is often simpler to use for such purposes.)
      *
      * <p>If the function returns {@code null}, the mapping is removed (or
      * remains absent if initially absent).  If the function itself throws an
@@ -939,7 +939,7 @@
      * steps for this {@code map}, then returning the current value or
      * {@code null} if absent:
      *
-     * <pre>{@code
+     * <pre> {@code
      * V oldValue = map.get(key);
      * V newValue = remappingFunction.apply(key, oldValue);
      * if (oldValue != null ) {
--- a/src/share/classes/java/util/stream/Collectors.java	Fri Apr 12 18:56:44 2013 -0700
+++ b/src/share/classes/java/util/stream/Collectors.java	Fri Apr 12 19:02:18 2013 -0700
@@ -766,7 +766,8 @@
      *
      * @apiNote
      * It is common for either the key or the value to be the input elements.
-     * In this case, the utility method {@link Functions#identity()} is likely
+     * In this case, the utility method
+     * {@link java.util.function.Functions#identity()} is likely
      * to be helpful.  For example, the following produces a {@code Map} mapping
      * students to their grade point average:
      * <pre>{@code