The rule java:S1948 “Fields in a “Serializable” class should either be transient or serializable”
triggers for me in this java snippet:
public class Auftrag implements Serializable {
private static final long serialVersionUID = 1L;
protected ArrayList<Anhang> anhang;
}
I am using SonarQube: 8.5.1.38104
It was reported to be fixed in squid:S1948 wrongly reported by Sonar 7.7 on ArrayList<String> - #2 by Nicolas_Peru
But perhaps it was only fixed for the private field not a protected, public or so?