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

Unnecessary Vector usage in DocPrintJob implementations

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: