RFR: 8275242: Remove redundant stream() call before forEach in jdk.compiler [v2]

Andrey Turbanov duke at openjdk.java.net
Mon Oct 18 08:45:12 UTC 2021


> 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

Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:

  8275242: Remove redundant stream() call before forEach in jdk.compiler
  expand start import

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/5521/files
  - new: https://git.openjdk.java.net/jdk/pull/5521/files/48ca9063..4939c866

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5521&range=01
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5521&range=00-01

  Stats: 20 lines in 1 file changed: 19 ins; 1 del; 0 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