On Mon, 2 Jun 2025 11:10:04 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:

> SonarCloud complains we are using the String.replaceAll() method that creates 
> Pattern internally every time. This looks a minor inefficiency in preview 
> feature, but we can fix it from the day 1. Also fixed the variable name style 
> in adjacent cached Pattern.
> 
> Additional testing:
>  - [x] Linux x86_64 server fastdebug, `jdk_security`

This pull request has now been integrated.

Changeset: 6f783e5f
Author:    Aleksey Shipilev <sh...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/6f783e5fab0e98da6c41e3c22d4523733f060d68
Stats:     9 lines in 1 file changed: 4 ins; 0 del; 5 mod

8358319: Pem.decode should cache the Pattern

Reviewed-by: ascarpino

-------------

PR: https://git.openjdk.org/jdk/pull/25583

Reply via email to