mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8241014: Miscellaneous typos in documentation comments
Reviewed-by: igerasim, prappo, psandoz, rriggs, weijun
This commit is contained in:
parent
c5a7490809
commit
17ff85d4ad
39 changed files with 104 additions and 107 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -932,7 +932,7 @@ public interface Stream<T> extends BaseStream<T, Stream<T>> {
|
|||
* additional synchronization is needed for a parallel reduction.
|
||||
*
|
||||
* @apiNote
|
||||
* The following will accumulate strings into an ArrayList:
|
||||
* The following will accumulate strings into a List:
|
||||
* <pre>{@code
|
||||
* List<String> asList = stringStream.collect(Collectors.toList());
|
||||
* }</pre>
|
||||
|
|
|
@ -316,7 +316,7 @@
|
|||
* see the API note documented on the {@link java.util.stream.Stream#count count}
|
||||
* operation.)
|
||||
*
|
||||
* <p>Many computations where one might be tempted to use side effects can be more
|
||||
* <p>Many computations where one might be tempted to use side-effects can be more
|
||||
* safely and efficiently expressed without side-effects, such as using
|
||||
* <a href="package-summary.html#Reduction">reduction</a> instead of mutable
|
||||
* accumulators. However, side-effects such as using {@code println()} for debugging
|
||||
|
@ -445,7 +445,7 @@
|
|||
* required.
|
||||
*
|
||||
* <p>The "widgets" examples shown earlier shows how reduction combines with
|
||||
* other operations to replace for loops with bulk operations. If {@code widgets}
|
||||
* other operations to replace for-loops with bulk operations. If {@code widgets}
|
||||
* is a collection of {@code Widget} objects, which have a {@code getWeight} method,
|
||||
* we can find the heaviest widget with:
|
||||
* <pre>{@code
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue