abapOpenChecks - Installation - Checks - Utilities - Links

CHECK_93 - Only Static Methods in one Class

Improve this page
CODE

As mentioned in the SAP Styleguide, methods should be instance methods by default. I’ve seen a lot of pure static classes. To prevent this I’d like to have a check which has a look if a class only contains static methods. Also SAP says that there is only one accepted exception for this.

Configuration

Configuration