Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 753a575

Browse files
committed
JDK-8241014: Misc. typos in doc comments
1 parent 75b5579 commit 753a575

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/main/java/java9/util/Maps.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ public final class Maps {
7979
* {@code null}, else returns the current value.
8080
*
8181
* <p><b>Implementation Requirements:</b><br>
82-
* The default implementation is equivalent to, for the {@code
83-
* map}:
82+
* The default implementation is equivalent to, for the {@code map}:
8483
*
8584
* <pre> {@code
8685
* V v = map.get(key);

src/main/java/java9/util/stream/Stream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@ <R> R collect(Supplier<R> supplier,
940940
* additional synchronization is needed for a parallel reduction.
941941
*
942942
* <p><b>API Note:</b><br>
943-
* The following will accumulate strings into an ArrayList:
943+
* The following will accumulate strings into a List:
944944
* <pre>{@code
945945
* List<String> asList = stringStream.collect(Collectors.toList());
946946
* }</pre>

src/main/java/java9/util/stream/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
* see the API note documented on the {@link java9.util.stream.Stream#count count}
317317
* operation.)
318318
*
319-
* <p>Many computations where one might be tempted to use side effects can be more
319+
* <p>Many computations where one might be tempted to use side-effects can be more
320320
* safely and efficiently expressed without side-effects, such as using
321321
* <a href="package-summary.html#Reduction">reduction</a> instead of mutable
322322
* accumulators. However, side-effects such as using {@code println()} for debugging
@@ -445,7 +445,7 @@
445445
* required.
446446
*
447447
* <p>The "widgets" examples shown earlier shows how reduction combines with
448-
* other operations to replace for loops with bulk operations. If {@code widgets}
448+
* other operations to replace for-loops with bulk operations. If {@code widgets}
449449
* is a collection of {@code Widget} objects, which have a {@code getWeight} method,
450450
* we can find the heaviest widget with:
451451
* <pre>{@code

0 commit comments

Comments
 (0)