mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-12 16:15:42 +00:00
perf[scheduler]: 删除不必要的方法
This commit is contained in:
1 parent
d2817aaab4
commit
b31186c8d3
2 files changed
+1
-20
No files matched your search
@@ -25,7 +25,7 @@ public abstract class IdUtils {
|
||||
private static final AtomicInteger ATOMIC_INTEGER = new AtomicInteger(0);
|
||||
|
||||
/**
|
||||
* 本地int的id,如果达到最大值则重新从最小值重新计算
|
||||
* 获取本地int的唯一id,如果达到最大值则重新从最小值重新计算,线程安全
|
||||
*/
|
||||
public static int getLocalIntId() {
|
||||
return ATOMIC_INTEGER.incrementAndGet();
|
||||
|
||||
Reference in new issue
Block a user