Unnecessary Vector usage in DocPrintJob implementations

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 21
    • Affects Version/s: 17, 21
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: