8298380: Clean up redundant array length checks in JDK code base#11589
8298380: Clean up redundant array length checks in JDK code base#11589stsypanov wants to merge 1 commit intoopenjdk:masterfrom
Conversation
|
👋 Welcome back stsypanov! A progress list of the required criteria for merging this PR into |
|
@stsypanov 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. |
dholmes-ora
left a comment
There was a problem hiding this comment.
These all seem fine to me.
You can count this as the review for hotspot and serviceability. :)
|
@stsypanov 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 13 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. 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 (@dholmes-ora, @alexmenkov, @mrserb, @vyommani) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
mrserb
left a comment
There was a problem hiding this comment.
The "client" changes in src/java.desktop looks fine
vyommani
left a comment
There was a problem hiding this comment.
java.base changes looks ok to me.
|
/integrate |
|
@stsypanov |
|
/sponsor |
|
Going to push as commit e3c6cf8.
Your commit was automatically rebased without conflicts. |
|
@TheShermanTanker @stsypanov Pushed as commit e3c6cf8. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
@stsypanov , @TheShermanTanker You jumped the gun a bit on the integration and sponsoring. There was no approval for the core-libs parts from a "R"eviewer. |
|
@RogerRiggs changes are trivial. Should I revert any of them? |
|
No, just a reminder to be through in the process. |
Newer version of IntelliJ IDEA introduces new inspection detecting redundant array length check in snippets like
Here
is redundant and can be removed as length check is performed by for-each loop.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/11589/head:pull/11589$ git checkout pull/11589Update a local copy of the PR:
$ git checkout pull/11589$ git pull https://git.openjdk.org/jdk pull/11589/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 11589View PR using the GUI difftool:
$ git pr show -t 11589Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/11589.diff