-
Notifications
You must be signed in to change notification settings - Fork 461
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
JDK-8297412: Remove easy warnings in javafx.fxml, javafx.media, javafx.swing, javafx.swt and javafx.web #958
Conversation
👋 Welcome back jhendrikx! A progress list of the required criteria for merging this PR into |
Webrevs
|
I think a single approving reviewer should be sufficient for this PR. Please allow enough time for anyone else who might be interested to comment on this. |
I just noticed that this touches files under |
Looks good. Warning numbers changes: web: 1988 -> 646 I think you can add fxml to this PR as well since it's small enough. |
I wasn't aware of special treatment of those files, I've reverted them so they can be done in another PR. |
modules/javafx.media/src/main/java/com/sun/media/jfxmediaimpl/NativeAudioSpectrum.java
Show resolved
Hide resolved
modules/javafx.swing/src/main/java/com/sun/javafx/embed/swing/newimpl/SwingNodeInteropN.java
Show resolved
Hide resolved
Given that some changes will require a bit more review, I'd like two reviewers. /reviewers 2 |
@kevinrushforth |
Exception is now documented instead
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 now
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.
An abstract comment about the "warning removals" PRs.
As I go over the code in various places to look at suspicious changes, I find some rather peculiar pieces of code. In this PR it was the non-abstract empty implementations, in the other PRs it's various other things. While I don't suggest to start rewriting code that has been working for years, I find it interesting to see how paradigms have changed since 2014 or before and how there are more expressive ways to write the same code today.
I toyed a bit with some code segments and rewrote them locally just to see what it would look like, and I was happy with the results (didn't save any of the changes since I don't plan to commit them). Just food for thought about how dealing with these warnings can reveal not only immediate bugs, but also sketchy code that makes you raise an eyebrow.
@hjohn 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 7 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 As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@andy-goryachev-oracle, @nlisker) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/sponsor |
/integrate |
That's an interesting observation. As you say, "food for thought". If done carefully in an area that we are intended to improve for other (functional) reasons, then it might be worth it in some cases. Probably not for most areas, though. |
/sponsor |
Going to push as commit 7cb408b.
Your commit was automatically rebased without conflicts. |
@Override
annotationsProgress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx pull/958/head:pull/958
$ git checkout pull/958
Update a local copy of the PR:
$ git checkout pull/958
$ git pull https://git.openjdk.org/jfx pull/958/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 958
View PR using the GUI difftool:
$ git pr show -t 958
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/958.diff