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

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Feb 24 18:02:03 UTC 2025


On Mon, 24 Feb 2025 14:11:10 GMT, Florent Guillaume <duke at openjdk.org> wrote:

> But `replace` replaces all occurrences already.

Ah yes - that's where I got confused - thanks. (`replace` vs. `replaceAll` vs. `replaceFirst` mix a number of different concerns - such as one vs. many and string vs. char).

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23658#discussion_r1968141310


More information about the compiler-dev mailing list