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

Return references when possible in GrowableArray

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 23
    • None
    • hotspot
    • b26

    Description

      Currently only `at()` returns references to the element, allowing the caller to choose between copying the element or accessing it directly in the data array. This RFE introduces the same semantics to `at_grow`, `top`, `first` and `last`, which makes the API more streamlined.

      Attachments

        Issue Links

          Activity

            People

              jsjolen Johan Sjölen
              jsjolen Johan Sjölen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: