mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 20:17:51 +00:00
ref[thread]: deprecated method in java 17
This commit is contained in:
1 parent
e158e92497
commit
b0d242658c
5 files changed
+5
-13
No files matched your search
@@ -85,7 +85,7 @@ public class ZookeeperRegistry implements IRegistry {
|
||||
|
||||
// config-p1-t1 = config-pool-1-thread-1
|
||||
ConfigThreadFactory() {
|
||||
this.group = ThreadUtils.currentThreadGroup();
|
||||
this.group = Thread.currentThread().getThreadGroup();
|
||||
namePrefix = "config-p" + poolNumber.getAndIncrement() + "-t";
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ public final class TaskBus {
|
||||
private final ThreadGroup group;
|
||||
|
||||
public TaskThreadFactory(int poolNumber) {
|
||||
this.group = ThreadUtils.currentThreadGroup();
|
||||
this.group = Thread.currentThread().getThreadGroup();
|
||||
this.poolNumber = poolNumber;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user