Inspectopedia Help

Unqualified inner class access

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


import foo.Foo.Bar; class Foo { class Bar {} } class Baz { void f(Bar bar) {} }
class Foo { class Bar {} } class Baz { void f(Foo.Bar bar) {} }

Use the inspection settings to ignore references to inner classes within the same class, which therefore do not require an import.

Inspection options

Here you can find the description of settings available for the Unqualified inner class access inspection, and the reference of their default values.

Ignore references to local inner classes

Default: Selected

Inspection Details

By default bundled with:

IntelliJ IDEA 2024.1, Qodana for JVM 2024.1,

Can be installed with plugin:

Java, 241.14841

Last modified: 12 March 2024