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

duke duke at openjdk.org
Fri Jul 12 21:18:53 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.

@wenshao 
Your change (at version 829da3e149eadedd22d81d22a2d025516c59c210) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk/pull/20149#issuecomment-2226364868


More information about the hotspot-dev mailing list