remove NotNull annotations
This commit is contained in:
parent
f43c47f78d
commit
284a1caf44
|
|
@ -1,7 +1,5 @@
|
||||||
package vip.fubuki.playersync.util;
|
package vip.fubuki.playersync.util;
|
||||||
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
|
||||||
|
|
||||||
import java.util.concurrent.ThreadFactory;
|
import java.util.concurrent.ThreadFactory;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
|
|
||||||
|
|
@ -13,15 +11,11 @@ public class PSThreadPoolFactory implements ThreadFactory {
|
||||||
public PSThreadPoolFactory(String Prefix) {
|
public PSThreadPoolFactory(String Prefix) {
|
||||||
threadNamePrefix = Prefix;
|
threadNamePrefix = Prefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Thread newThread(@NotNull Runnable runnable) {
|
public Thread newThread(Runnable runnable) {
|
||||||
Thread thread = new Thread(runnable);
|
Thread thread = new Thread(runnable);
|
||||||
thread.setName(threadNamePrefix + "-thread-" + threadIdx.getAndIncrement());
|
thread.setName(threadNamePrefix + "-thread-" + threadIdx.getAndIncrement());
|
||||||
return thread;
|
return thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user