Find ThreadGroup usages
MSALMarks uses of java.lang.ThreadGroup. ThreadGroup was originally intended to help with thread management but its API has serious design flaws (most methods are either deprecated or unsafe) and it has been superseded by java.util.concurrent.ExecutorService. Sites flagged include new ThreadGroup(...) constructor calls, calls to Thread.getThreadGroup(), and method invocations on ThreadGroup receivers.
org. openrewrite. staticanalysis. FindThreadGroupUsagesmod run . --recipe= org. openrewrite. staticanalysis. FindThreadGroupUsagesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.