public
fields.
Constants (fields marked with static
and final
) are not reported.
Example:
class Main {
public String name;
}
After the quick-fix is applied:
class Main {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Configure the inspection:
public final
fields
of the enum
type.