1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.sizes.executablestatementcount;
10
11 import java.util.function.Consumer;
12 import java.util.function.Function;
13
14 public class InputExecutableStatementCountLambdas {
15
16 Consumer a = (o) -> {
17 o.toString();
18 o.toString();
19 o.toString();
20 o.toString();
21 o.toString();
22 o.toString();
23 };
24
25 Consumer b = (x) -> {
26 Consumer c = (s) -> {
27 String str = s.toString();
28 str = str + "!";
29 };
30 Consumer d = (s) -> {
31 String str = s.toString();
32 Consumer t = a -> a.toString().trim();
33 Function x1 = a -> a;
34 Function y = a -> null;
35 };
36 };
37 }