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

FP S1226/parameter reassigned: Annotation on method with same parameter name as method parameter should not raise an issue

    XMLWordPrintable

    Details

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

      Description

      @Annotation(param="value") //raise issue because this param is considered as a reassignement of method parameter.
      void foo(String param) {}
      

        Attachments

          Activity

            People

            Assignee:
            benzonico OLD - Nicolas Peru
            Reporter:
            benzonico OLD - Nicolas Peru
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: