Back to Intellij Community

InnerClassOnInterface

java/java-impl/resources/inspectionDescriptions/InnerClassOnInterface.html

2025.3-rc-2328 B
Original Source

Reports inner classes in interface classes.

Some coding standards discourage the use of such classes. The inspection doesn't report enum classes and annotation interfaces.

Use the Ignore inner interfaces of interfaces option to ignore inner interfaces. For example:

interface I {
    interface Inner {
    }
  }