How to determine whether "unused" private fields in Java are actually being used by Spring?

Viewed 1183

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?

2 Answers
Related