Integrated: JDK-8263411: Convert jshell tool to use Stream.toList()

Ian Graves igraves at openjdk.java.net
Wed Mar 24 09:34:41 UTC 2021


On Fri, 12 Mar 2021 21:51:07 GMT, Ian Graves <igraves at openjdk.org> wrote:

> This converts jshell from using `Stream.collect(Collectiors.toList())` to `Stream.toList()` - an immutable list with better performance characteristics. Local inspection only turned up one place that was mutating a resulting list and that has been refactored. 
> 
> This work is a subtask to: https://bugs.openjdk.java.net/browse/JDK-8260559

This pull request has now been integrated.

Changeset: fad84840
Author:    Ian Graves <igraves at openjdk.org>
Committer: Jan Lahoda <jlahoda at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/fad84840
Stats:     74 lines in 11 files changed: 0 ins; 14 del; 60 mod

8263411: Convert jshell tool to use Stream.toList()

Reviewed-by: jlahoda

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

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


More information about the kulla-dev mailing list