Reports non-static inner classes that implement Serializable and are declared inside a class that doesn't implement Serializable.

Such classes are unlikely to serialize correctly due to implicit references to the outer class.

Example:


  class A {
    class Main implements Serializable {
    }
  }

Use the following options to configure the inspection: