title: Make "class" transient or serializable BUT the class is serializable
body: <p>SonarQube 5.1 marks a lot of critical issues after reviewing my code. However the class itself and the referenced class in the field is also serializable. The referenced class inherits the serializable interface through a class.</p>
  
  <p>Here is my example</p>
  
  <pre><code>public class A implements Serializable {
       private B b;  // -&gt; Sonarcube markes this field as not serialzable
  }
  </code></pre>
  
  <p>And the class B is defined as follows</p>
  
  <pre><code>public class B extends C {
   ....
  }
  </code></pre>
  
  <p>And the class C is defined as follows</p>
  
  <pre><code>public abstract class C extends D {
   ....
  }
  </code></pre>
  
  <p>And the class D is defined</p>
  
  <pre><code>public abstract class D implements Serializable {
    ....
  }
  </code></pre>
  
  <p>Running FindBugs on the same project does not see these problems.
  I am not sure if it is a bug in sonarcube or is my code has some other problems (other fields in the classes C,D or something else)</p>
  
  <p>Does anybody has a clue ?</p>