Inspectopedia
 
2024.3

@Singleton constructors

Error
Reliability
New
Last modified: 03 December 2024

Reports constructors of classes annotated by @Singleton unless it is declared non-strict.

Example:

There are two possible quick-fixes: either to remove the constructor or to declare @Singleton non-strict.

After the quick-fix is applied:

or: