Private method only used from inner class
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:
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
MethodOnlyUsedFromInnerClass- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
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.
Inspection options
Here you can find the description of settings available for the Private method only used from inner class inspection, and the reference of their default values.
- Ignore methods called from an anonymous or local class
Not selected
- Only report 'static' methods
Not selected
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 242.22892 |