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

FP on S1172 : Annotated methods with unused parameters should not raise issues

    Details

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

      Description

      Methods annotated with unused parameters are usually using the annotation in combination of interceptors, which may use this parameter.

      In order to avoid raising False Positives, unused parameters of annotated methods should be ignored.

      RSPEC should also be modified to mention the exclusion.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: