Inspectopedia Help

Package-visible field

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

Constants (that is, fields marked static and final) are not reported.

Example:

public class A { Object object; // warning final static int MODE = 0; // constant, no warning }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Java, 233.SNAPSHOT

Last modified: 13 July 2023