mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8321468: Remove StringUTF16::equals
Reviewed-by: rriggs, kvn
This commit is contained in:
parent
19e92201b4
commit
55c1446b68
14 changed files with 25 additions and 138 deletions
|
@ -451,20 +451,6 @@ final class StringUTF16 {
|
|||
}
|
||||
}
|
||||
|
||||
@IntrinsicCandidate
|
||||
public static boolean equals(byte[] value, byte[] other) {
|
||||
if (value.length == other.length) {
|
||||
int len = value.length >> 1;
|
||||
for (int i = 0; i < len; i++) {
|
||||
if (getChar(value, i) != getChar(other, i)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@IntrinsicCandidate
|
||||
public static int compareTo(byte[] value, byte[] other) {
|
||||
int len1 = length(value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue