On Fri, 7 Feb 2025 08:08:39 GMT, GennadiyKrivoshein <d...@openjdk.org> wrote:
>> src/java.desktop/share/classes/sun/print/PSPrinterJob.java line 1578: >> >>> 1576: } >>> 1577: if (options != null && !options.isEmpty()) { >>> 1578: optionArgs = options.trim().split("\\s+"); >> >> In what format the options are expected for this regex to work? Is it same >> for both linux and mac? > > The format is space delimited values, each value is a "key=value". > There is no difference between Linux and Mac and there are no changes in the > format of the options. If it's a space delimited values, then can't we use "options.trim().split(" ")" same as what we have been using below? ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/23457#discussion_r1946125709