fix():格式规范修改

boot3.0
dongzeliang 2025-02-27 16:30:00 +08:00
parent e24bd88c16
commit c35dbc58eb
1 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* @return {@code UUID} * @return {@code UUID}
*/ */
public static UUID randomUuid(boolean isSecure) { public static UUID randomUuid(boolean isSecure) {
final Random ng = isSecure ? Holder.numberGenerator : getRandom(); final Random ng = isSecure ? Holder.NUMBER_GENERATOR : getRandom();
byte[] randomBytes = new byte[16]; byte[] randomBytes = new byte[16];
ng.nextBytes(randomBytes); ng.nextBytes(randomBytes);
@ -453,6 +453,6 @@ public final class UUID implements java.io.Serializable, Comparable<UUID> {
* SecureRandom * SecureRandom
*/ */
private static class Holder { private static class Holder {
static final SecureRandom numberGenerator = getSecureRandom(); static final SecureRandom NUMBER_GENERATOR = getSecureRandom();
} }
} }