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

S1612 : false positive when the invoked method has an argument which is not the lambda parameter

    XMLWordPrintable

    Details

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

      Description

       Arrays.asList("bar").stream().filter(string -> string.startsWith("b")); //squid:S1612 false positive
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: