· BeanMembersShouldSerialize: 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.if you have a variable foo, you should provide getFoo and setFoo methods.
翻译 Bean成员应该是可序列化的:如果类是一个Java bean,或者被一个bean直接或间接地引用,它就需要序列化。类的成员变量需要被标记为transient,static,或具备访问方法。将变量标记为transient是最安全和最简单的改动方法。访问方法应该遵循java命名规范,例如:如果有一个变量foo,应该提供getFoo()和setFoo()方法。
· MissingSerialVersionUID: Classes that are serializable should provide a serialVersionUID field.
翻译 缺少序列化版本ID:可序列化的类应该提供serialVersionUID域