Inspectopedia
 
2024.3

Private method only used from inner class

Warning
New
Last modified: 03 December 2024

Reports private methods which are only called from an inner class of the class containing the method. Such methods can be safely moved into that inner class.

Example:

Use the first checkbox below to ignore private methods which are called from an anonymous or local class.

Use the third checkbox to only report static methods.