code: /*
  LambdaBodyLength
  max = (default)10
  
  
  */
  
  package com.puppycrawl.tools.checkstyle.checks.sizes.lambdabodylength;
  
  import java.util.List;
  import java.util.function.*;
  
  public class InputLambdaBodyLengthDefault {
      {
          List<String> list = null;
          list.forEach(item -> { // violation
              System.out.println(1);
              System.out.println(2);
              System.out.println(3);
              System.out.println(4);
              System.out.println(5);
              System.out.println(6);
              System.out.println(7);
              System.out.println(8);
              System.out.println(9);
              System.out.println(10);
          });
          list.forEach(item -> System.out.println( // violation
              item.concat("2")
                  .concat("3")
                  .concat("4")
                  .concat("5")
                  .concat("6")
                  .concat("7")
                  .concat("8")
                  .concat("9")
                  .concat("10")
                  .concat("11")
              )
          );
          list.forEach(item -> // violation
              System
  
                  .
  
                      out
  
                  .
                      println
                          (
                              item
                          )
          );
          Supplier<Runnable> s = () -> // violation
              (
  
              ) -> { // violation
  
                  // some lambda body code
  
  
  
  
  
  
  
              };
          Supplier<String> s1 = () -> // violation
              "1"
                  + "2"
                  + "3"
                  + "4"
                  + "5"
                  + "6"
                  + "7"
                  + "8"
                  + "9"
                  + "10"
                  + "11"
              ;
          Supplier<String> s2 = () -> // ok, 10 lines
              "1"
                  + "2"
                  + "3"
                  + "4"
                  + "5"
                  + "6"
                  + "7"
                  + "8"
                  + "9"
                  + "10"
              ;
          list.forEach(item -> { // ok, 10 lines
              System.out.println(1);
              System.out.println(2);
              System.out.println(3);
              System.out.println(4);
              System.out.println(5);
              System.out.println(6);
              System.out.println(7);
              System.out.println(8);
          });
      }
  }
  