On Mon, 5 Dec 2022 08:23:58 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:
> 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. I would prefer if that the fields were of type `List` instead of `ArrayList`. ------------- Changes requested by swi...@github.com (no known OpenJDK username). PR: https://git.openjdk.org/jdk/pull/11504