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

S1948 FP on serializable collection initialized to null

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.14
    • Component/s: Rules
    • Labels:
      None

      Description

      class Person implements Serializable {
        private java.util.ArrayList<String> lines = null; // false positive will be raised as null literal won't be checked for collection initializer and will (wronlgy) be considered as non serializable
      } 

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alban.auzeill Alban Auzeill
                Reporter:
                nicolas.peru Nicolas Peru
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: