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

Empty lambda should not raise an issue for S108 : nested block should not be left empty

    Details

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

      Description

      Consumer<String> consumer = s -> {}; // FP on S108 
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nicolas.peru Nicolas Peru
                Reporter:
                nicolas.peru Nicolas Peru
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: