RFR: 8336278: Micro-optimize Replace String.format("%n") to System.lineSeparator

Doug Simon dnsimon at openjdk.org
Fri Jul 12 07:37: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.

Looks good and trivial to me.

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

Marked as reviewed by dnsimon (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/20149#pullrequestreview-2174075257


More information about the graal-dev mailing list