mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8273910: Redundant condition and assignment in java.net.URI
Reviewed-by: dfuchs
This commit is contained in:
parent
8ca084617f
commit
7de2cf852d
1 changed files with 4 additions and 7 deletions
|
@ -2207,7 +2207,6 @@ public final class URI
|
|||
ru.authority = child.authority;
|
||||
ru.host = child.host;
|
||||
ru.userInfo = child.userInfo;
|
||||
ru.host = child.host;
|
||||
ru.port = child.port;
|
||||
ru.path = child.path;
|
||||
}
|
||||
|
@ -3490,14 +3489,12 @@ public final class URI
|
|||
if (q <= p)
|
||||
break;
|
||||
l = p;
|
||||
p = q;
|
||||
q = scan(p, n, L_ALPHANUM | L_DASH, H_ALPHANUM | H_DASH);
|
||||
if (q > p) {
|
||||
if (input.charAt(q - 1) == '-')
|
||||
fail("Illegal character in hostname", q - 1);
|
||||
p = q;
|
||||
q = scan(p, n, L_ALPHANUM | L_DASH, H_ALPHANUM | H_DASH);
|
||||
if (q > p) {
|
||||
if (input.charAt(q - 1) == '-')
|
||||
fail("Illegal character in hostname", q - 1);
|
||||
p = q;
|
||||
}
|
||||
}
|
||||
q = scan(p, n, '.');
|
||||
if (q <= p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue