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
8276348: Use blessed modifier order in java.base #6213
Conversation
👋 Welcome back prappo! A progress list of the required criteria for merging this PR into |
@pavelrappo The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
A colleague suggested that I should clarify that the |
LGTM |
@pavelrappo 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 5 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 |
JFYI a couple of times I've wondered if we regressed on this. I just ran the script on the desktop module and we havea few instances there too, so I've filed a clean up bug on it. |
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.
Keep it as is with the modifiers in the recommended order. I don't think adding extra typography is warranted.
Going to push as commit 6150633.
Your commit was automatically rebased without conflicts. |
@pavelrappo Pushed as commit 6150633. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Mailing list message from David Holmes on core-libs-dev: On 3/11/2021 9:26 pm, Pavel Rappo wrote:
Line 281 is (was!) consistent with line 277 because it is distinguishing Line 49 places "static synchronized" in code font, implying that it is Cheers, |
Thanks, David. You've provided a clear and convincing argument, and I can see the inconsistency I introduced. I can revert that particular piece back if you think that it would be appropriate. That said, this line will have to be filtered out every time the script is run. I could probably provide a more involved script that harnesses the power of AST (com.sun.source.doctree) to try to filter out prose, but it would be impossible to beat the simplicity of the current script; and simplicity is also important.
I've been always having hard time with modifiers being not enclosed in |
Mailing list message from David Holmes on core-libs-dev: On 4/11/2021 12:14 am, Pavel Rappo wrote:
Given this is prose, the adjectives should be separated by commas: "a
Consider this definition: "A synchronized method is one which must acquire the monitor of the Here there is a distinction** between the general notion of a ** The distinction would be more obvious if Java had an implicit way to Cheers, P.S. For the book "The Java Programming Language" the authors made a |
This PR follows up one of the recent PRs, where I used a non-canonical modifier order. Since the problem was noticed 1, why not to address it en masse?
As far as I remember, the first mass-canonicalization of modifiers took place in JDK-8136583 in 2015 2. That change affected 1780 lines spanning 453 files. Since then modifiers have become a bit loose, and it makes sense to re-bless (using the JDK-8136583 terminology) them.
This change was produced by running the below command followed by updating the copyright years on the affected files where necessary:
The resulting change is much smaller than that of 2015: 39 lines spanning 21 files.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/6213/head:pull/6213
$ git checkout pull/6213
Update a local copy of the PR:
$ git checkout pull/6213
$ git pull https://git.openjdk.java.net/jdk pull/6213/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 6213
View PR using the GUI difftool:
$ git pr show -t 6213
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/6213.diff
Footnotes
https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-November/082987.html (or https://github.com/openjdk/jdk/pull/6191#pullrequestreview-794333365) ↩
http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-September/035217.html ↩