RFR: JDK-8263411: Convert jshell tool to use Stream.toList() [v3]

Ian Graves igraves at openjdk.java.net
Tue Mar 23 16:59:57 UTC 2021


> 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

Ian Graves has updated the pull request incrementally with one additional commit since the last revision:

  Fixing a forgotten cast

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2979/files
  - new: https://git.openjdk.java.net/jdk/pull/2979/files/fd520aa0..9fe5634f

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

  Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/2979.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/2979/head:pull/2979

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


More information about the kulla-dev mailing list