Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3571

FP on S1948 when collection implements Serializable

    XMLWordPrintable

    Details

      Description

      When both the implementation class of a Collection and its embedded type implements Serializable, rule S1948 is raising FPs.

      class A {
        private static abstract class MySerializableList<T> implements List<T>, Serializable { }
      
        MySerializableList<String> mySerializableList; // FP
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.gumowski Michael Gumowski
              Reporter:
              michael.gumowski Michael Gumowski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: