RFR: 8277535: Remove redundant Stream.distinct()/sorted() steps [v2]
Andrey Turbanov
duke at openjdk.java.net
Mon Nov 22 10:44:35 UTC 2021
> 1. Stream.distinct() is redundant before toSet() collector. Duplicates will be collapsed by Collector.
> 2. Stream.sorted() is redundant before toMap() collector. Keys will be shuffled by Collector (it's a HashMap in current implementation)
Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
8277535: Remove redundant Stream.distinct()/sorted() steps
update copyright year
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/5714/files
- new: https://git.openjdk.java.net/jdk/pull/5714/files/b326898d..e0312d2d
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=5714&range=01
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=5714&range=00-01
Stats: 3 lines in 3 files changed: 0 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/5714.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/5714/head:pull/5714
PR: https://git.openjdk.java.net/jdk/pull/5714
More information about the core-libs-dev
mailing list