Integrated: 8275242: Remove redundant stream() call before forEach in jdk.compiler
Andrey Turbanov
duke at openjdk.java.net
Fri Dec 17 18:56:31 UTC 2021
On Wed, 15 Sep 2021 07:24:35 GMT, Andrey Turbanov <duke at openjdk.java.net> wrote:
> There are several places in the jdk.compiler that use stream().forEach(...), these can be cleaned up.
> Instead Collection.forEach or Map.forEach can be used directly.
> This is continuation of
> 1. [JDK-8273710](https://bugs.openjdk.java.net/browse/JDK-8273710) Remove redundant stream() call before forEach in jdk.jdeps
> 2. [JDK-8273711](https://bugs.openjdk.java.net/browse/JDK-8273711) Remove redundant stream() call before forEach in jdk.jlink
This pull request has now been integrated.
Changeset: 022e4f0f
Author: Andrey Turbanov <turbanoff at gmail.com>
Committer: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/022e4f0f1c4862315b34595d6df228a49f67cb2e
Stats: 20 lines in 5 files changed: 10 ins; 4 del; 6 mod
8275242: Remove redundant stream() call before forEach in jdk.compiler
Reviewed-by: vromero
-------------
PR: https://git.openjdk.java.net/jdk/pull/5521
More information about the compiler-dev
mailing list