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

Unnecessary Vector usage in DocPrintJob implementations

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 21
    • 17, 21
    • client-libs
    • 2d
    • b05

    Description

      There are 3 implementations of javax.print.DocPrintJob in the JDK:

      1. PSStreamPrintJob
      2. UnixPrintJob
      3. Win32PrintJob

      They have Vector fields 'jobListeners', 'attrListeners', 'listenedAttributeSets', but they are always accessed only under synchronized(this) blocks. It means we can safely replace them with ArrayList.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: