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

SequenceInputStream should not use Vector

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 20
    • core-libs
    • b25

    Description

      There is no need to use a temporary Vector within the constructor of SynchronizedInputStream, as more efficient (non-synchronized) alternative code (like List.of) will do the same in possibly less time. While the optimization is not dramatic, it still makes sense to replace Vector unless synchronization is really needed.

      Attachments

        Issue Links

          Activity

            People

              mkarg Markus Karg
              mkarg Markus Karg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: