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

List.map should return itself if list is unchanged

XMLWordPrintable

    • b56
    • Not verified

        The new routine list.map is used to implement Type mappings; one important assumption of type mappings is that they rely on identity of the mapped elements; that is, if mapping a list doesn't change any element in the list, the list itself should be returned. A failure to do so will result in spinning more instances than necessary.

              mcimadamore Maurizio Cimadamore
              mcimadamore Maurizio Cimadamore
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: