+1
> On Oct 31, 2016, at 5:58 PM, Paul Sandoz <[email protected]> wrote:
> 
> Hi,
> 
> Please review the following JavDoc fix for j.u.stream.Collectors:: 
> collectingAndThen.
> 
> Thanks,
> Paul.
> 
> diff -r 2e076c7e72d6 
> src/java.base/share/classes/java/util/stream/Collectors.java
> --- a/src/java.base/share/classes/java/util/stream/Collectors.java    Mon Oct 
> 31 14:51:23 2016 -0700
> +++ b/src/java.base/share/classes/java/util/stream/Collectors.java    Mon Oct 
> 31 14:55:16 2016 -0700
> @@ -508,7 +508,7 @@
>      * transformation.  For example, one could adapt the {@link #toList()}
>      * collector to always produce an immutable list with:
>      * <pre>{@code
> -     *     List<String> people
> +     *     List<String> list
>      *         = people.stream().collect(collectingAndThen(toList(), 
> Collections::unmodifiableList));
>      * }</pre>
>      *

 <http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif> 
<http://oracle.com/us/design/oracle-email-sig-198324.gif>
 <http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| 
Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
[email protected] <mailto:[email protected]>



Reply via email to