Skip to content
Permalink
Browse files
8259816: Typo in java.util.stream package description
Reviewed-by: iris, lancea, naoto
  • Loading branch information
Stuart Marks committed Jan 27, 2021
1 parent 0eed2c3 commit eb9236853cfada574e7697e925f9eca9743fa923
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/java.base/share/classes/java/util/stream/package-info.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2021, 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
@@ -346,7 +346,7 @@
* <pre>{@code
* List<String> results =
* stream.filter(s -> pattern.matcher(s).matches())
* .collect(Collectors.toList()); // No side-effects!
* .toList(); // No side-effects!
* }</pre>
*
* <h3><a id="Ordering">Ordering</a></h3>
@@ -436,7 +436,7 @@
* can operate on subsets of the data in parallel, and then combine the
* intermediate results to get the final correct answer. (Even if the language
* had a "parallel for-each" construct, the mutative accumulation approach would
* still required the developer to provide
* still require the developer to provide
* thread-safe updates to the shared accumulating variable {@code sum}, and
* the required synchronization would then likely eliminate any performance gain from
* parallelism.) Using {@code reduce()} instead removes all of the

1 comment on commit eb92368

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on eb92368 Jan 27, 2021

Please sign in to comment.