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

Shaojin Wen duke at openjdk.org
Fri Jul 12 21:52:04 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.

This pull request has now been integrated.

Changeset: 4957145e
Author:    Shaojin Wen <shaojin.wensj at alibaba-inc.com>
Committer: Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/4957145e6c823bfaa638a77457da5c031af978b9
Stats:     6 lines in 3 files changed: 0 ins; 0 del; 6 mod

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

Reviewed-by: dnsimon, shade

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

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


More information about the hotspot-dev mailing list