mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-28 03:58:21 +00:00
Update src/java.base/share/classes/java/lang/Long.java
Co-authored-by: Chen Liang <liach@openjdk.org>
This commit is contained in:
parent
0c487d3ec6
commit
08a7e9496e
@ -310,7 +310,7 @@ public final class Long extends Number
|
||||
public static String toHexString(long i) {
|
||||
int mag = Long.SIZE - Long.numberOfLeadingZeros(i);
|
||||
int len = Math.max(((mag + 3) >> 2), 1);
|
||||
long x = HexDigits.hex8Be((int)i);
|
||||
long x = HexDigits.hex8Be((int) i);
|
||||
if (COMPACT_STRINGS) {
|
||||
byte[] chars = new byte[len];
|
||||
if (len > 8) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user