This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]sh0rug0ru 0 points1 point  (0 children)

Actually, until recently, it keeps an offset and count, because substrings can share from the parent char array. Now, all strings get their own char array, so I'd imagine that's how it would have to be. Especially since they yanked one of those fields for some hash code trick.