Inspectopedia Help

'public' nested class

Reports public nested classes.

Example:

public class Outer { public static class Nested {} // warning public class Inner {} // warning public enum Mode {} // warning depends on the setting public interface I {} // warning depends on the setting }

Configure the inspection:

  • Use the Ignore 'public' inner enums option to ignore public inner enums.

  • Use the Ignore 'public' inner interfaces option to ignore public inner interfaces.

Inspection options

Option

Type

Default

Ignore 'public' inner enums

Checkbox

false

Ignore 'public' inner interfaces

Checkbox

false

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023