Pattern: Use of ThreadGroup
Issue: -
Although it is intended to be used in a threaded environment, ThreadGroup
contains methods that are not thread safe.
Here is an example of code that produces a violation:
new ThreadGroup("...")
new ThreadGroup(tg, "thread group")
Thread.currentThread().getThreadGroup()
System.getSecurityManager().getThreadGroup()