-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8355790: Enhance code consistency: java.desktop/unix:sun.awt #24941
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
|
👋 Welcome back serb! A progress list of the required criteria for merging this PR into |
|
@mrserb 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
alisenchung
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.
I've run the clientlibs tests on mach5 and everything passes.
|
/integrate |
The
java.desktopmodule currently lacks proper use of the@Overrideannotation for methods and thefinalmodifier for classes. While similar changes were previously made in the JavaSound, java.desktop/windows (and some of the classes on demand), these changes are not as critical now due to the new jdk "encapsulation", but they are still useful for improving code consistency.To make the code review process easier I have made the following changes:
java.desktop/unix:sun.awtas the starting package because it contains a relatively small number of classesNote: I will submit additional patches in this area later because:
@Overrideandfinalwere modified to keep the diff clear - header dates were not updated (that could be covered by one patch similar to this)@Overridefor anonymous classesAny feedback or suggestions are welcome!
Here is a link to a simple diff file, it might be more convenient for reviewing the changes.
To download the diff file and filter only the modified lines you can use the following script:
The build was successful, and I ran all the open jtreg tests without issues. But it's possible that some closed tests may be affected by these changes. It would be good to verify this by mach5 to ensure everything works as expected.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/24941/head:pull/24941$ git checkout pull/24941Update a local copy of the PR:
$ git checkout pull/24941$ git pull https://git.openjdk.org/jdk.git pull/24941/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 24941View PR using the GUI difftool:
$ git pr show -t 24941Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/24941.diff
Using Webrev
Link to Webrev Comment