Inspectopedia
 
2024.3

Utility class is not 'final'

Warning
New
Last modified: 03 December 2024

Reports utility classes that aren't final or abstract.

Utility classes have all fields and methods declared as static. Making them final prevents them from being accidentally subclassed.

Example:

After the quick-fix is applied: