On Sun, 10 Sep 2023 16:15:01 GMT, 温绍锦 <d...@openjdk.org> wrote:
> java.util.DecimalDigits::DIGITS and java.lang.StringLatin1.PACKED_DIGITS are > duplicates, We need to move > java.util.Digits/OctalDigits/DecimalDigits/HexDigits to the jdk.internal.util > package, and modify these classes to public class, so that classes in other > packages can also access them. > > DecimalDigits::DIGITS provides a new digitPair static method, used to replace > StringLatin1.PACKED_DIGITS access. > > In order to be consistent with the original StringLatin1.PACKED_DIGITS, > OctalDigits::DIGITS and DecimalDigits::DIGITS are modified to little-endian. > HexDigits::DIGITS will also be modified after PR #14745 is merged. > > These changes will be used by PR #15658 #15555 This pull request has now been integrated. Changeset: e0845163 Author: shaojin.wensj <shaojin.we...@alibaba-inc.com> Committer: Claes Redestad <redes...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/e0845163aa57cc8f68b11e1a553885676358f2a6 Stats: 530 lines in 10 files changed: 257 ins; 260 del; 13 mod 8315968: Move java.util.Digits to jdk.internal.util and refactor to reduce duplication Reviewed-by: rriggs, liach, redestad ------------- PR: https://git.openjdk.org/jdk/pull/15651