On Mon, Apr 23, 2018 at 5:05 PM Xueming Shen <xueming.s...@oracle.com>
wrote:

>
> I would assume in case of an exception thrown from
> appendExpandedReplacement() we don't
> want "text" to be pushed into the "sb".
>
> -sherman
>

Perhaps. Though the behavior under exception is undefined and this function
is probably primarily used though the replaceAll API, which wouldn’t return
the intermediate sb under the case of exception.

My reading of the blame was the temp StringBuilder was an artifact of the
api previously using StringBuffer externally.

>

Reply via email to