RFR: 8336278: Micro-optimize Replace String.format("%n") to System.lineSeparator
Aleksey Shipilev
shade at openjdk.org
Fri Jul 12 07:57:50 UTC 2024
On Thu, 11 Jul 2024 22:45:47 GMT, Shaojin Wen <duke at openjdk.org> wrote:
> There are three places in the JDK code where String.format("%n") is used. This is actually equivalent to System.lineSeparator and does not require the implementation of String.format.
Hah! Yes, it makes no sense to call into `String.format` to just get the line separator.
-------------
Marked as reviewed by shade (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/20149#pullrequestreview-2174110063
More information about the graal-dev
mailing list