Integrated: 8349991: GraphUtils.java can use String.replace() instead of String.replaceAll()

Archie Cobbs acobbs at openjdk.org
Tue Feb 25 19:42:00 UTC 2025


On Mon, 17 Feb 2025 02:38:20 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> This is a tiny performance improvement that replaces a few invocations of `String.replaceAll()` with equivalent invocations of `String.replace(char, char)` and avoids the unnecessary use of regular expressions.

This pull request has now been integrated.

Changeset: a3188e04
Author:    Archie Cobbs <acobbs at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a3188e0406bcd69468de0444038525d3d069699f
Stats:     4 lines in 1 file changed: 0 ins; 0 del; 4 mod

8349991: GraphUtils.java can use String.replace() instead of String.replaceAll()

Reviewed-by: mcimadamore

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

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


More information about the compiler-dev mailing list