[Fix] Removed use of SecurityManager as slated for removal

This commit is contained in:
Robert von Burg 2023-02-13 07:37:44 +01:00
parent ce24c87d41
commit fd67a493fe
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 2 deletions

View File

@ -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 + "-";
}