RFR: JDK-8263545: Convert jpackage to use Stream.toList() [v2]

Ian Graves igraves at openjdk.java.net
Mon Mar 15 18:53:26 UTC 2021


> This converts jpackage to use `Stream.toList()` instead of `Stream.collect(Collectors.toList())`. One piece of code was modified to not mutate a list in addition to one test that used a mutating sort on a list. The rest of the changes are simple substitutions.

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

  Clarifying type argument and shorting a toArray invocation

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/2997/files
  - new: https://git.openjdk.java.net/jdk/pull/2997/files/1bb46b54..ce11489b

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

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

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


More information about the core-libs-dev mailing list