Package-visible nested class

Last modified: Last modified: 18 September 2025

Reports nested classes that are declared without any access modifier (also known as package-private).

Example:

Configure the inspection:

  • Use the Ignore package-visible inner enums option to ignore package-private inner enums.

  • Use the Ignore package-visible inner interfaces option to ignore package-private inner interfaces.