Private method only used from inner class

Last modified: Last modified: 18 September 2025

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.