[Fix] Removed use of SecurityManager as slated for removal
This commit is contained in:
parent
ce24c87d41
commit
fd67a493fe
|
@ -12,8 +12,7 @@ public class NamedThreadPoolFactory implements ThreadFactory {
|
|||
private final String poolName;
|
||||
|
||||
public NamedThreadPoolFactory(String poolName) {
|
||||
SecurityManager s = System.getSecurityManager();
|
||||
this.group = (s != null) ? s.getThreadGroup() : Thread.currentThread().getThreadGroup();
|
||||
this.group = Thread.currentThread().getThreadGroup();
|
||||
this.poolName = poolName + "-";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue