SonarQube 5.1 notes many critical issues after looking at my code. However, the class itself and the reference class in the field are also serializable. The associated class inherits the serializable interface through the class.
Here is my example
public class A implements Serializable { private B b;
And class B is defined as follows:
public class B extends C { .... }
And class C is defined as follows:
public abstract class C extends D { .... }
And class D is defined
public abstract class D implements Serializable { .... }
Running FindBugs in the same project does not see these problems. I'm not sure if this is a bug in sonarcube or my code has other problems (other fields in classes C, D or something else)
Does anyone have a key?
source share