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

Ian Graves igraves at openjdk.java.net
Tue Mar 16 04:55:23 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 with a new target base due to a merge or a rebase. The pull request now contains two commits:

 - Clarifying type argument and shorting a toArray invocation
 - Converting jpackage to use Stream.toList()

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

Changes: https://git.openjdk.java.net/jdk/pull/2997/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=2997&range=02
  Stats: 47 lines in 17 files changed: 1 ins; 3 del; 43 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