On Fri, 22 Sep 2023 04:10:26 GMT, 温绍锦 <d...@openjdk.org> wrote:
>> 1. Reduce duplicate stringSize code >> 2. Move java.lang.StringLatin1.getChars to >> jdk.internal.util.DecimalDigits::getCharLatin1,not only java.lang, other >> packages also need to use this method > > 温绍锦 has updated the pull request with a new target base due to a merge or a > rebase. The pull request now contains eight commits: > > - rebase from master & refactor digits > - rebase from master > - Merge remote-tracking branch 'upstream/master' into > refactor_get_chars_and_string_size > > # Conflicts: > # src/java.base/share/classes/java/lang/StringLatin1.java > - add comment > - fix build error > - fix build error > - move StringLatin1::getChars to > jdk.internal.util.DecimalDigits::getCharsLatin1 > - move *::stringSize to jdk.internal.util.DecimalDigits::stringSize Do Octal and Hex digits need int versions of getChars and stringSize? ------------- PR Comment: https://git.openjdk.org/jdk/pull/15699#issuecomment-1730795452