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

S1948 should handle collection types properly

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12
    • Component/s: Rules
    • Labels:
      None

      Description

      When dealing with collection this rule can be improved with the following guideline:
      For a field of a type inherited from java.util.Collection :

      • Field is not private : it can be modified outside of the class -> raise an issue : this is actually not safe at all.
      • Field is private : find the assignement(s) and raise an issue if type assigned is not serializable.

      source
      https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/sonarqube/rxtxmekBJkc/lHdTqLbTHwAJ

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                michael.gumowski Michael Gumowski
                Reporter:
                nicolas.peru Nicolas Peru
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: