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

Daniel Fuchs dfuchs at openjdk.java.net
Wed Oct 6 18:04:06 UTC 2021


On Thu, 19 Aug 2021 19:08:59 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> 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;

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

-------------

PR: https://git.openjdk.java.net/jdk/pull/5190


More information about the net-dev mailing list