I’m seeing the following during SonarLint:
Classes and enums with private members should have a constructor.
This may be sibling thread titled The reason behind squid:S1258, but this one is more geared toward java:S1258.
As a resolution, it suggests the following:
private members should explicitly initialize those members, either in a constructor or with a default value.
For SpringBoot application, @Value annotation takes care of default value. Even with this annotation, can we consider java:S1258 as valid?