Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277535

Remove redundant Stream.distinct()/sorted() steps

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 19
    • None
    • core-libs
    • None
    • b07

      Stream.distinct() is redundant before toSet() collector. Duplicates will be collapsed by Collector.
      Stream.sorted() is redundant before toMap() collector. Keys will be shuffled by Collector (it's a HashMap in current implementation)

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: