We use Sonar/pmd to report when a private field is declared and/or assigned a value, but not used. These can be erroneous reports in certain circumstances, for instance, when reflection is used.
The Spring framework does various things using reflection. How can I determine whether a supposedly unused Java field is actually being used by Spring?