Inspectopedia
 
2024.3

Unnecessarily qualified inner class access

Info
New
Last modified: 03 December 2024

Reports any references to inner classes that are unnecessarily qualified with the name of the enclosing class.

Such a qualification can be safely removed, which sometimes adds an import for the inner class.

Example:

After the quick-fix is applied:

Use the Ignore references for which an import is needed option to ignore references to inner classes, where removing the qualification adds an import.