Inspectopedia Help

Incorrect @Scheduled method signature

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.

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Spring, 241.14841

Last modified: 12 March 2024