PMD spots many Spring components I have, with non-accessable members (no getters or setters), and says the following:
If a class is a bean, or is referenced by a bean directly or indirectly it needs to be serializable. Member variables need to be marked as transient, static, or have accessor methods in the class. Marking variables as transient is the safest and easiest modification. Accessor methods should follow the Java naming conventions, i.e. for a variable named foo, getFoo() and setFoo() accessor methods should be provided.
And I wonder, why does a Spring component/bean has to be Serializable??
Also, is it backed up by Spring documentation (I didn't find...)