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

Prefer ArrayList to LinkedList in LayoutComparator

    XMLWordPrintable

Details

    Backports

      Description

        LinkedList is used in javax.swing.LayoutComparator#compare
        There is only add/iterator calls on this list. No removes from the head or something like this. Not sure why LinkedList was used, but ArrayList should be preferred as more efficient and widely used (more chances for JIT) collection

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved: