When both the implementation class of a Collection and its embedded type implements Serializable, rule S1948 is raising FPs.
class A { private static abstract class MySerializableList<T> implements List<T>, Serializable { } MySerializableList<String> mySerializableList; // FP }
- relates to
-
RSPEC-1948 Fields in a "Serializable" class should either be transient or serializable
- Active
- links to