This repository was archived by the owner on Feb 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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>
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments