Inspectopedia
 
2024.3

Incorrect @Scheduled method signature

Warning
New
Last modified: 03 December 2024

Reports incorrect @Scheduled methods.

According to Spring Documentation, methods to be scheduled must return void and must not expect any arguments. If the method needs to interact with other objects from the Application Context, they should be provided through dependency injection.