On Mon, 13 Sep 2021 20:06:08 GMT, Andrey Turbanov 
<github.com+741251+turban...@openjdk.org> wrote:

> 8273711: Remove redundant stream() call before forEach in jdk.jlink

In some cases you can use a method ref (no need for another review if you 
update those).

src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ReleaseInfoPlugin.java
 line 102:

> 100:                     throw new IllegalArgumentException("No key specified 
> for delete");
> 101:                 }
> 102:                 Utils.parseList(keys).forEach((k) -> {

Use method ref: `release::remove`

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

Marked as reviewed by psandoz (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/5500

Reply via email to