RFR: 8275242: Remove redundant stream() call before forEach in jdk.compiler
Andrey Turbanov
duke at openjdk.java.net
Wed Oct 13 19:03:09 UTC 2021
There are several places in the jdk.compiler, jdk.javadoc, jdk.jshell 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
-------------
Commit messages:
- [PATCH] Remove redundant stream() call before forEach in jdk.compiler
- [PATCH] Remove redundant stream() call before forEach in jdk.* modules
- [PATCH] Remove redundant stream() call before forEach in jdk.* modules
Changes: https://git.openjdk.java.net/jdk/pull/5521/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5521&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-8275242
Stats: 17 lines in 5 files changed: 0 ins; 12 del; 5 mod
Patch: https://git.openjdk.java.net/jdk/pull/5521.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5521/head:pull/5521
PR: https://git.openjdk.java.net/jdk/pull/5521
More information about the compiler-dev
mailing list