Inspectopedia
 
2024.3

Convert to primary constructor

Warning
New
Last modified: 03 December 2024

Reports a secondary constructor that can be replaced with a more concise primary constructor.

Example:

The quick-fix converts code automatically: