On Mon, Mar 18, 2013 at 3:37 PM, Xueming Shen <xueming.s...@oracle.com>wrote:

> **
>
> The spec of both affected methods says "the char at the index is returned,
> if
> the following conditions are not true
>
> 1) hi-surrogate &&
> 2) next index < count &&
> 3) char at next is lo-surrogate
>
> So it is the right thing to do to simply return the char at index, if it
> is the last
> char in the buffer.
>
>
Right.


> Martin, the purpose of dup the code here is for better performance?
>

Yes.

Reply via email to