Inspectopedia Help

Protected nested class

Reports protected nested classes.

Example:

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

Configure the inspection:

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

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

Inspection options

Option

Type

Default

Ignore 'protected' inner enums

Checkbox

false

Ignore 'protected' 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