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; ------------- Commit messages: - [PATCH] Cleanup redundant assignment and condition in URI Changes: https://git.openjdk.java.net/jdk/pull/5190/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5190&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8273910 Stats: 11 lines in 1 file changed: 4 ins; 7 del; 0 mod Patch: https://git.openjdk.java.net/jdk/pull/5190.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/5190/head:pull/5190 PR: https://git.openjdk.java.net/jdk/pull/5190