I have a java bean class (private members, public no-argument constructor).
Part of fields can be optional, they are initialized with compiler-default values (nulls/falses for booelans), and can be set/changed later.
I would like to understand why
enums with non-
privatemembers should explicitly initialize those members, either in a constructor or with a default value.
I even can’t just put those values into field declaration, because that violates S3052 rule.
The only way to get rid of all violations is to provide a no-argument constructor which will initialize fields like the compiler does, and that looks just like clutter.