Inspectopedia
 
2024.3

'ScheduledThreadPoolExecutor' with zero core threads

Warning
New
Last modified: 03 December 2024

Reports any java.util.concurrent.ScheduledThreadPoolExecutor instances in which corePoolSize is set to zero via the setCorePoolSize method or the object constructor.

A ScheduledThreadPoolExecutor with zero core threads will run nothing.

Example: