Inspectopedia
 
2024.3

Light service must be final

Error
Reliability
New
Last modified: 03 December 2024

Reports classes annotated with the @com.intellij.openapi.components.Service annotation that are not final.

Suggests making a class final if it is concrete.

Example:

After the quick-fix is applied:

Suggests removing the @Service annotation if it is an abstract class or interface.

Example:

After the quick-fix is applied:

New in 2023.2