Refactor code for reallocating storage

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: None
    • Component/s: core-libs
    • b22

      There are several places in JDK with similar logic:
      An array needs to be reallocated to increase the storage, taking into account the maximum allowed size of arrays.

      It's better to introduce a dedicated method for calculating required capacity. This would consolidate the logic in one place, reduce the code duplication and thus will reduce risk of bugs.

            Assignee:
            Ivan Gerasimov
            Reporter:
            Ivan Gerasimov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: