rspec/rules/S2122/description.adoc
2021-11-29 14:35:27 +00:00

5 lines
319 B
Plaintext

``++java.util.concurrent.ScheduledThreadPoolExecutor++``'s pool is sized with ``++corePoolSize++``, so setting ``++corePoolSize++`` to zero means the executor will have no threads and run nothing.
This rule detects instances where ``++corePoolSize++`` is set to zero, via either its setter or the object constructor.