mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-31 13:15:26 +00:00
8215380: Backout accidental change to String::length
Reviewed-by: darcy, smarks
This commit is contained in:
parent
cdf49edb29
commit
78669ad35e
@ -664,7 +664,7 @@ public final class String
|
||||
* object.
|
||||
*/
|
||||
public int length() {
|
||||
return isLatin1() ? value.length : value.length >> UTF16;
|
||||
return value.length >> coder();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user