Class with too many fields
Reports classes whose number of fields exceeds the specified maximum.
Classes with a large number of fields are often trying to do too much. Consider splitting such a class into multiple smaller classes.
Configure the inspection:
Use the Field count limit field to specify the maximum allowed number of fields in a class.
Use the Include constant fields in count option to indicate whether constant fields should be counted.
By default only immutable
static finalobjects are counted as constants. Use the 'static final' fields count as constant option to count any
static finalfield as constant.
Use the Include enum constants in count option to specify whether
enumclasses should be counted.
Field count limit
Include constant fields in count
'static final' fields count as constant
Include enum constants in count
IntelliJ IDEA 2023.3, Qodana for JVM 2023.3