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

Replace usages of java.util.Stack with ArrayDeque

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: 16, 17
    • Fix Version/s: 18
    • Component/s: other-libs
    • Labels:
      None
    • Resolved In Build:
      b16

      Description

      java.util.Stack is a legacy thread-safe collections.
      When thread-safety is not required it's better to use ArrayDeque or ArrayList.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aturbanov Andrey Turbanov
              Reporter:
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: