Inspectopedia
 
2024.3

Abstract class without 'abstract' methods

Warning
New
Last modified: 03 December 2024

Reports abstract classes that have no abstract methods. In most cases it does not make sense to have an abstract class without any abstract methods, and the abstract modifier can be removed from the class. If the class was declared abstract to prevent instantiation, it is often a better option to use a private constructor to prevent instantiation instead.

Example:

Use the option to ignore utility classes.