ref[thread]: deprecated method in java 17

This commit is contained in:
godotg committed 2023-09-02 19:23:07 +08:00
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;
}