1
2
3
4
5
6
7
8
9
10
11 package com.puppycrawl.tools.checkstyle.checks.sizes.lambdabodylength;
12
13
14 class Example1 {
15 Runnable r = () -> {
16 System.out.println(2);
17 System.out.println(3);
18 System.out.println(4);
19 System.out.println(5);
20 System.out.println(6);
21 System.out.println(7);
22 System.out.println(8);
23 System.out.println(9);
24 };
25 Runnable r2 = () -> {
26 System.out.println(2);
27 System.out.println(3);
28 System.out.println(4);
29 System.out.println(5);
30 System.out.println(6);
31 System.out.println(7);
32 System.out.println(8);
33 System.out.println(9);
34 System.out.println(10);
35 };
36 Runnable r3 = () ->
37 "someString".concat("1")
38 .concat("2")
39 .concat("3")
40 .concat("4")
41 .concat("5")
42 .concat("6")
43 .concat("7")
44 .concat("8")
45 .concat("9")
46 .concat("10")
47 .concat("11");
48 }
49