remove NotNull annotations

This commit is contained in:
EoD 2025-05-02 18:49:55 +00:00
parent f43c47f78d
commit 284a1caf44

View File

@ -1,7 +1,5 @@
package vip.fubuki.playersync.util;
import org.jetbrains.annotations.NotNull;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
@ -13,15 +11,11 @@ public class PSThreadPoolFactory implements ThreadFactory {
public PSThreadPoolFactory(String Prefix) {
threadNamePrefix = Prefix;
}
@Override
public Thread newThread(@NotNull Runnable runnable) {
public Thread newThread(Runnable runnable) {
Thread thread = new Thread(runnable);
thread.setName(threadNamePrefix + "-thread-" + threadIdx.getAndIncrement());
return thread;
}
}