RFR: 8337167: StringSize deduplication

Chen Liang liach at openjdk.org
Thu Jul 25 12:10:32 UTC 2024


On Thu, 25 Jul 2024 05:30:34 GMT, Shaojin Wen <duke at openjdk.org> wrote:

> Integer.stringSize and Long.stringSize are used not only in java.lang, but also in other places. We put stringSize in DecimalDigits to reduce duplicate code and the use of JLA.

src/java.base/share/classes/jdk/internal/access/JavaLangAccess.java line 462:

> 460: 
> 461:     int stringSize(long i);
> 462: 

👍 Removing extra dependencies on `JavaLangAccess`

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20322#discussion_r1691333555


More information about the core-libs-dev mailing list