-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
P4
-
Affects Version/s: 26
-
Component/s: core-libs
-
generic
-
generic
DecimalFormat uses DigitList.append for parsing routines.
During the append process:
An int from range 0 to 9 is converted to a char of '0' to '9'. This char is then converted to a byte (the code points 48 - 57).
Explicitly it is int -> char -> byte.
This could be simplified (explicitly) to int -> byte w/o the need for the intermediate cast to char.
During the append process:
An int from range 0 to 9 is converted to a char of '0' to '9'. This char is then converted to a byte (the code points 48 - 57).
Explicitly it is int -> char -> byte.
This could be simplified (explicitly) to int -> byte w/o the need for the intermediate cast to char.
- links to
-
Review(master)
openjdk/jdk/27300