1
2
3
4
5
6
7
8
9 package com.puppycrawl.tools.checkstyle.checks.sizes.methodlength;
10 import java.io.*;
11
12 final class InputMethodLengthSimpleOne
13 {
14
15
16
17
18
19
20
21 public static final int badConstant = 2;
22
23 public static final int MAX_ROWS = 2;
24
25
26 private static int badStatic = 2;
27
28 private static int sNumCreated = 0;
29
30
31 private int badMember = 2;
32
33 private int mNumCreated1 = 0;
34
35 protected int mNumCreated2 = 0;
36
37
38 private int[] mInts = new int[] {1,2, 3,
39 4};
40
41
42
43
44
45 public static int sTest1;
46
47 protected static int sTest3;
48
49 static int sTest2;
50
51
52 int mTest1;
53
54 public int mTest2;
55
56
57
58
59
60
61
62
63
64
65 int test1(int badFormat1,int badFormat2,
66 final int badFormat3)
67 throws java.lang.Exception
68 {
69 return 0;
70 }
71
72
73 private InputMethodLengthSimpleOne()
74 {
75
76
77
78
79
80
81
82
83 }
84
85
86 private void localVariables()
87 {
88
89 int abc = 0;
90 int ABC = 0;
91
92
93 final int cde = 0;
94 final int CDE = 0;
95
96
97 for (int k = 0; k < 1; k++)
98 {
99 String innerBlockVariable = "";
100 }
101 for (int I = 0; I < 1; I++)
102 {
103 String InnerBlockVariable = "";
104 }
105 }
106 }
107
108
109 class InputSimple2
110 {
111
112 public void doSomething()
113 {
114
115 for (Object O : new java.util.ArrayList())
116 {
117 }
118 }
119 }