On Sat, 25 Jan 2025 13:04:52 GMT, Shaojin Wen <[email protected]> wrote:
> Since FloatToDecimal and DoubleToDecimal are used in Float.toString and
> Double.toString, some code in FloatingDecimal is not used. This refactoring
> is to remove the unused code and reuse DecimalDigits to reduce duplication of
> code.
src/java.base/share/classes/java/text/DigitList.java line 325:
> 323:
> 324: byte[] chars = getDataChars(20);
> 325: int len = fdConverter.getChars(chars);;
Suggestion:
int len = fdConverter.getChars(chars);
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23311#discussion_r2287339395