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
|
package com.google.googlejavaformat.java.test;
/**
* Tests for CastExpressions, CatchClauses, CharacterLiterals, ClassInstanceCreations,
* CommentHelper, ConditionalExpressions, ConstructorInvocations, ContinueStatements, and
* CreationReferences.
*/
class C<T> {
// TODO(jdd): Test higher-language-level constructs.
C() {
this(
0, 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);
}
C(int... x) {}
void f() {
try {
} catch (RuntimeException e) {
Object x =
(Pair<
Pair<
Pair<Pair<Integer, Integer>, Pair<Integer, Integer>>,
Pair<Pair<Integer, Integer>, Pair<Integer, Integer>>>,
Pair<
Pair<Pair<Integer, Integer>, Pair<Integer, Integer>>,
Pair<Pair<Integer, Integer>, Pair<Integer, Integer>>>>)
null;
C<Integer> c =
new C<Integer>(
0, 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);
int i = 0;
int j =
i == 0
? 0
: i == 1
? 1
: i == 2 ? 2 : i == 3 ? 3 : i == 4 ? 4 : i == 5 ? 5 : i == 6 ? 6 : i == 7 ? 7 : i;
LABEL:
while (true != false) {
if (false == true) continue;
if (false == false) continue LABEL;
// Comment indented +2
// Comment indented +2
}
}
}
}
|