RFR: 8269638: Property methods, setters, and getters in printing API should be final [v4]

Phil Race prr at openjdk.java.net
Fri Jul 16 21:39:53 UTC 2021


On Fri, 16 Jul 2021 21:26:52 GMT, Kevin Rushforth <kcr at openjdk.org> wrote:

> Yes, this null check is needed, since we specify that setting the `printer` property to `null` will use the default printer.


oh yeah. So nothing to do here.

The only question is about the behaviour of
 public static final PrinterJob createPrinterJob(Printer printer)  {}
when called with null.

- Document the NPE
- Don't do anything 
-  Substitute the default printer and create the job and document this
- return null if there isn't one and document this.
-

-------------

PR: https://git.openjdk.java.net/jfx/pull/574


More information about the openjfx-dev mailing list