'public' field
Reports public
fields. Constants (fields marked with static
and final
) are not reported.
Example:
After the quick-fix is applied:
Locating this inspection
- By ID
Can be used to locate inspection in e.g. Qodana configuration files, where you can quickly enable or disable it, or adjust its settings.
PublicField- Via Settings dialog
Path to the inspection settings via IntelliJ Platform IDE Settings dialog, when you need to adjust inspection settings directly from your IDE.
Configure the inspection:
Use the Ignore If Annotated By list to specify annotations to ignore. The inspection will ignore fields with any of these annotations.
Use the Ignore 'public final' fields of an enum option to ignore
public final
fields of theenum
type.
Inspection options
Here you can find the description of settings available for the 'public' field inspection, and the reference of their default values.
- Ignore if annotated by
[org.junit.runners.Parameterized.Parameter]
- Ignore 'public final' fields of an enum type
Not selected
Inspection Details | |
---|---|
By default bundled with: | |
Can be installed with plugin: | Java, 243.23126 |