1
2
3
4
5
6
7
8 package com.puppycrawl.tools.checkstyle.checks.coding.nestedfordepth;
9
10
11
12
13
14
15
16 public class InputNestedForDepthCheckCustomMaxLevelTwo {
17
18
19
20
21 public void nestedForFiveLevel() {
22 int i = 0;
23 int i1 = 0;
24 int i2 = 0;
25 int i3 = 0;
26 int i4 = 0;
27 int i5 = 0;
28
29 for (i1 = 0; i1 < 10; i1++) {
30 for (i2 = 0; i2 < 10; i2++) {
31 for (i3 = 0; i3 < 10; i3++) {
32 for (i4 = 0; i4 < 10; i4++) {
33 for (i5 = 0; i5 < 10; i5++) {
34 i += 1;
35 }
36 for (int i5a = 0; i5a < 10; i5a++) {
37 i += 1;
38 }
39 }
40 }
41 }
42 }
43 }
44 }