There are 3 implementations of javax.print.DocPrintJob in the JDK (It seems they were copy-pasted from each other): 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. BTW. 'attrListeners' and 'listenedAttributeSets' seems unused. ------------- Commit messages: - [PATCH] Unnecessary Vector usage in DocPrintJob implementations Changes: https://git.openjdk.org/jdk/pull/11504/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=11504&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8298447 Stats: 24 lines in 3 files changed: 0 ins; 0 del; 24 mod Patch: https://git.openjdk.org/jdk/pull/11504.diff Fetch: git fetch https://git.openjdk.org/jdk pull/11504/head:pull/11504 PR: https://git.openjdk.org/jdk/pull/11504