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

S2255 should not raise issues for null value stored in a Cookie

    XMLWordPrintable

    Details

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

      Description

      The following code should not raise an issue:

      Cookie cookie = new Cookie("name", null);
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrei.epure Andrei Epure
              Reporter:
              alexandre.gigleux Alexandre Gigleux
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: