Inspectopedia Help

Method can be made 'static'

Reports a class method that can be safely made static. A method can be static if it does not reference any of its class' non-static methods and non-static fields and is not overridden in a subclass.

Use the first checkbox below to inspect only private methods.

Inspection options

Here you can find the description of settings available for the Method can be made 'static' inspection, and the reference of their default values.

Only check 'private' methods

Not selected

Last modified: 29 April 2024