-
Notifications
You must be signed in to change notification settings - Fork 555
8269638: Property methods, setters, and getters in printing API should be final #574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/csr |
|
👋 Welcome back prr! A progress list of the required criteria for merging this PR into |
|
@prrace has indicated that a compatibility and specification (CSR) request is needed for this pull request. |
Webrevs
|
|
/reviewers 2 |
|
@kevinrushforth |
kevinrushforth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two quick comments, otherwise looks good (I'll do a more detailed review of the added docs as well we double-check that nothing else was missed).
PrinterJob::setPrinteris notfinal(and probably some / all of the docs could move to the property).- There are two new warnings about empty
<p>tags:
jfx/modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java:968: warning: empty <p> tag
* <p>
^
jfx/modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java:1049: warning: empty <p> tag
* <p>
^
modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java
Outdated
Show resolved
Hide resolved
modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java
Outdated
Show resolved
Hide resolved
|
fixed all the above and uploaded new commit |
kevinrushforth
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
@prsadhuk Can you be the second reviewer? |
|
The CSR has been created : https://bugs.openjdk.java.net/browse/JDK-8270381 |
prsadhuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
modules/javafx.graphics/src/main/java/javafx/print/PrinterJob.java
Outdated
Show resolved
Hide resolved
prrace
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uploaded new commit
modules/javafx.graphics/src/main/java/javafx/print/PrinterJob.java
Outdated
Show resolved
Hide resolved
prsadhuk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good..
However I have a different question...I was looking at printerProperty and I saw In l182, we are not checking for getDefaultPrinter() returns null or not but in l120, we do...Is it not required in l182?
It might be a good follow-on bug to skip lines 185-6 if |
|
@prrace This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
|
/integrate |
|
Going to push as commit 8b8cea2.
Your commit was automatically rebased without conflicts. |
I don't think there's a problem here. if (value == null) {
value = Printer.getDefaultPrinter();
}
The public no-args factory method returns null if it can't find a printer and the one There's a small issue there as the doc doesn't actually say that but anyone |
If
Yes, this null check is needed, since we specify that setting the |
oh yeah. So nothing to do here. The only question is about the behaviour of
|
|
I don't have a strong opinion on this one. I might lean toward the 3rd option, since it is consistent with calling |
This will need a CSR but I won't create that until the review is done.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jfx pull/574/head:pull/574$ git checkout pull/574Update a local copy of the PR:
$ git checkout pull/574$ git pull https://git.openjdk.java.net/jfx pull/574/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 574View PR using the GUI difftool:
$ git pr show -t 574Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jfx/pull/574.diff