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

S2057 raise issues when "serial" is used with other warnings

    Details

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

      Description

      Implementation of RSPEC-2057 does not raise issues on code suppressing "serial" warning. For instance:

      @SuppressWarnings("serial")
      class A implements Serializable {}
      

      Consequently, it should also not raise issues when some code is suppressing multiple warnings, including "serial":

      @SuppressWarnings("serial", "deprecation")
      class A implements Serializable {} // FP
      

        Attachments

          Activity

            People

            • Assignee:
              amelie.renard Amélie Renard
              Reporter:
              michael.gumowski Michael Gumowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: