mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
!1151 轻量级修改:UUID注释修改
* 注释增加代码实现参考 * 注释,增加简洁英文 * 修改:nameUUIDFromBytes 注释 * UUID从v1->v7,越来越复杂,新手很头大,增加对v6、v7的描述,提高代码自阅读性
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
package org.dromara.hutool.core.data.id;
|
||||
|
||||
import org.dromara.hutool.core.collection.ConcurrentHashSet;
|
||||
import org.dromara.hutool.core.data.id.UUID;
|
||||
import org.dromara.hutool.core.lang.Console;
|
||||
import org.dromara.hutool.core.thread.ThreadUtil;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@@ -30,6 +30,7 @@ public class UUIDTest {
|
||||
final Set<String> set = new ConcurrentHashSet<>(100);
|
||||
ThreadUtil.concurrencyTest(100, ()-> set.add(UUID.fastUUID().toString()));
|
||||
Assertions.assertEquals(100, set.size());
|
||||
Console.log(set);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user