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

Improve List.reverse for singletons

    Details

    • Subcomponent:
    • Resolved In Build:
      b92
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: