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

Improve List.reverse for singletons

XMLWordPrintable

    • b92
    • generic
    • generic
    • Verified

      List.reverse could detect a singleton list and return itself, thereby avoiding
      an unnecesary object creation for the new list.

      ###@###.### 2005-05-08 20:43:58 GMT

            jjg Jonathan Gibbons
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: