Skip to content

Conversation

@turbanoff
Copy link
Member

@turbanoff turbanoff commented Aug 19, 2021

  1. Assignment ru.host = child.host; is duplicated and hence redundant.
  2. Condition q > p is always true, because it just bellow inverse check
                if (q <= p)
                    break;

Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8273910: Redundant condition and assignment in java.net.URI

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/5190/head:pull/5190
$ git checkout pull/5190

Update a local copy of the PR:
$ git checkout pull/5190
$ git pull https://git.openjdk.java.net/jdk pull/5190/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 5190

View PR using the GUI difftool:
$ git pr show -t 5190

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/5190.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 19, 2021

👋 Welcome back turbanoff! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Aug 19, 2021

@turbanoff The following label will be automatically applied to this pull request:

  • net

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the net net-dev@openjdk.org label Aug 19, 2021
@bridgekeeper
Copy link

bridgekeeper bot commented Sep 16, 2021

@turbanoff This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@turbanoff turbanoff changed the title [PATCH] Cleanup redundant assignment and condition in URI 8273910: Redundant condition and assignment in java.net.URI Sep 16, 2021
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 16, 2021
@mlbridge
Copy link

mlbridge bot commented Sep 16, 2021

Webrevs

@dfuch
Copy link
Member

dfuch commented Oct 6, 2021

I have sent this patch to our test system. I will come back with the results when they are available.

Copy link
Member

@dfuch dfuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updated logic looks correct, and my tests (tier1,tier2,tier3) came back with no failure.
Reviewed.

@openjdk
Copy link

openjdk bot commented Oct 6, 2021

@turbanoff 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:

8273910: Redundant condition and assignment in java.net.URI

Reviewed-by: dfuchs

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 558 new commits pushed to the master branch:

  • 5762ec2: 8274780: ChannelInputStream.readNBytes(int) incorrectly calls readAllBytes()
  • 4e960fe: 8274497: Unnecessary Vector usage in AquaFileSystemModel
  • c833b4d: 8274329: Fix non-portable HotSpot code in MethodMatcher::parse_method_pattern
  • d57fb6f: 8274456: Remove jtreg tag manual=yesno java/awt/print/PrinterJob/PageDialogTest.java
  • 734d1fb: 8274211: Test man page that options are documented
  • 9561fea: 8273102: Delete deprecated for removal the empty finalize() in java.desktop module
  • 9945f7a: 8274318: Replace 'for' cycles with iterator with enhanced-for in java.management
  • 754bc82: 8274525: Replace uses of StringBuffer with StringBuilder in java.xml
  • 4e7d7ca: 8273711: Remove redundant stream() call before forEach in jdk.jlink
  • f3cedbe: 8274464: Remove redundant stream() call before forEach in java.* modules
  • ... and 548 more: https://git.openjdk.java.net/jdk/compare/51c1b9a6870bd9644e92227e47082a53e2d1c066...master

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 (@dfuch) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Oct 6, 2021
@turbanoff
Copy link
Member Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Oct 7, 2021
@openjdk
Copy link

openjdk bot commented Oct 7, 2021

@turbanoff
Your change (at version 30003bc) is now ready to be sponsored by a Committer.

@dfuch
Copy link
Member

dfuch commented Oct 7, 2021

/sponsor

@openjdk
Copy link

openjdk bot commented Oct 7, 2021

Going to push as commit 7de2cf8.
Since your change was applied there have been 566 commits pushed to the master branch:

  • 8ca0846: 8274407: (tz) Update Timezone Data to 2021c
  • 4ab274a: 8274858: Remove unused dictionary_classes_do functions
  • 03a8d34: 8273826: Correct Manifest file name and NPE checks
  • 722d639: 8274838: runtime/cds/appcds/TestSerialGCWithCDS.java fails on Windows
  • 340c715: 8273929: Remove GzipRandomAccess in heap dump test
  • 8319836: 8274546: Shenandoah: Remove unused ShenandoahUpdateRootsTask copy
  • d5ccfa2: 8274755: Replace 'while' cycles with iterator with enhanced-for in jdk.jdi
  • 29dcbb7: 8274716: JDWP Spec: the description for the Dispose command confuses suspend with resume.
  • 5762ec2: 8274780: ChannelInputStream.readNBytes(int) incorrectly calls readAllBytes()
  • 4e960fe: 8274497: Unnecessary Vector usage in AquaFileSystemModel
  • ... and 556 more: https://git.openjdk.java.net/jdk/compare/51c1b9a6870bd9644e92227e47082a53e2d1c066...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Oct 7, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Oct 7, 2021
@openjdk
Copy link

openjdk bot commented Oct 7, 2021

@dfuch @turbanoff Pushed as commit 7de2cf8.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

@turbanoff turbanoff deleted the remove_redundant_host_assignment_in_URI branch February 21, 2022 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrated Pull request has been integrated net net-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

2 participants