I have define serializable class and it has members of type java.util.List. In sonar it shows error as "Fields in a "Serializable" class should either be transient or serializable"
But actual implementation of those members are ArrayLists, which are serializable.
public class TestDataClass implements Serializable {
List<String> listMember = new ArrayList();
}