1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
package com.puppycrawl.tools.checkstyle.checks.indentation; //indent:0 exp:0
/** //indent:0 exp:0
* This test-input is intended to be checked using following configuration: //indent:1 exp:1
* //indent:1 exp:1
* arrayInitIndent = 4 //indent:1 exp:1
* basicOffset = 4 //indent:1 exp:1
* braceAdjustment = 0 //indent:1 exp:1
* caseIndent = 4 //indent:1 exp:1
* forceStrictCondition = false //indent:1 exp:1
* lineWrappingIndentation = 4 //indent:1 exp:1
* tabWidth = 4 //indent:1 exp:1
* throwsIndent = 4 //indent:1 exp:1
* //indent:1 exp:1
* //indent:1 exp:1
*/ //indent:1 exp:1
public class InputInvalidArrayInitIndent { //indent:0 exp:0
int[] array = new int[] {1, 2, 3};
int[] arrayb = new int[] {1, 2, 3};
int[] arrayc = new int[] {1, 2, 3};
int[] array2 = new int[] {
1, 2, 3
};
int[] array2b = new int[] {
1, 2, 3
};
int[] array3 = new int[] {
1,
2,
3
};
int[] array4 = new int[]
{
1,
2,
3
};
int[] array5 = new int[]
{1, 2, 3};
int[] array6 = new int[] { 1, 2,
3,
4,};
int[] array7 = new int[] {
1, 2,
3
};
int[] array8 = new int[] { };
int[] array9 = new int[] {
};
int[][] array10 = new int[][] {
new int[] { 1, 2, 3},
new int[] { 1, 2, 3},
};
int[][] array10b
= new int[][] {
new int[] { 1, 2, 3},
new int[] { 1, 2, 3},
};
private void func1(int[] arg) {
}
/** Creates a new instance of InputValidArrayInitIndent */
public InputInvalidArrayInitIndent() {
func1(new int[] {
1, 2, 3
});
}
private static char[] sHexChars = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
private void myFunc3()
{
char[] sHexChars2 = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
char[] sHexChars3 = {
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
};
char[] sHexChars4 =
{
'0', '1', '2', '3', '4', '5', '6', '7',
'8', '9', 'A', 'B', 'C', 'D', 'E', 'F'
};
}
}
|