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