Fix UUID#toString

This commit is contained in:
Refeccd
2025-10-23 19:27:09 +08:00
committed by GitHub
parent 47acd87e58
commit 8b7ed9f09a

View File

@@ -439,7 +439,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* @return 此{@code UUID} 的字符串表现形式
*/
public String toString(final boolean isSimple) {
final long mostSigBits = this.getLeastSignificantBits();
final long mostSigBits = this.getMostSignificantBits();
final long leastSigBits = this.getLeastSignificantBits();
final StringBuilder builder = StrUtil.builder(isSimple ? 32 : 36);