IdGenerator#toSimpleString 新增参数校验

pull/1/head
ZhouXY108 2024-11-27 21:39:34 +08:00
parent 296e8995d6
commit cee89835e5
1 changed files with 1 additions and 0 deletions

View File

@ -40,6 +40,7 @@ public class IdGenerator {
}
public static String toSimpleString(UUID uuid) {
AssertTools.checkArgumentNotNull(uuid);
return (uuidDigits(uuid.getMostSignificantBits() >> 32, 8) +
uuidDigits(uuid.getMostSignificantBits() >> 16, 4) +
uuidDigits(uuid.getMostSignificantBits(), 4) +