RFR: 8375221: Update code to get PrinterResolution from CUPS/IPP print service [v2]
Phil Race
prr at openjdk.org
Thu Jan 15 17:30:10 UTC 2026
On Wed, 14 Jan 2026 04:53:35 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8375221
>
> src/java.desktop/unix/classes/sun/print/IPPPrintService.java line 1718:
>
>> 1716: PrinterResolution []arr = new PrinterResolution[printerResolutions.length];
>> 1717: System.arraycopy(printerResolutions, 0, arr, 0, printerResolutions.length);
>> 1718: return arr;
>
> Can this be simplified to just "return printerResolutions.clone()"?
Done. Later I'll take a look if we can do the same in other places in javax.print.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29208#discussion_r2695300242
More information about the client-libs-dev
mailing list