mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add testcase & remove unused code
This commit is contained in:
@@ -32,7 +32,8 @@ public class DaemonThreadFactory implements ThreadFactory {
|
||||
}
|
||||
|
||||
public Thread newThread(Runnable r) {
|
||||
Thread newThread = new Thread(r, nameStart + threadNo.getAndIncrement() + nameEnd);
|
||||
String threadName = nameStart + threadNo.getAndIncrement() + nameEnd;
|
||||
Thread newThread = new Thread(r, threadName);
|
||||
newThread.setDaemon(true);
|
||||
if (newThread.getPriority() != Thread.NORM_PRIORITY) {
|
||||
newThread.setPriority(Thread.NORM_PRIORITY);
|
||||
|
||||
Reference in New Issue
Block a user