Inspectopedia
 
2024.3

Method can be made 'static'

Info
Performance
New
Last modified: 03 December 2024

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.