blob: 64f4ac11915030c626f36fae0b2a41d5a63cec0b (
plain)
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
|
package com.puppycrawl.tools.checkstyle.checks.blocks;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
import java.util.ArrayList;
import java.util.List;
class InputRightCurlyLineBreakBefore
{
/** @see test method **/
int foo() throws InterruptedException
{
int x = 1;
int a = 2;
while (true)
{
try
{
if (x > 0)
{
break;
} else if (x < 0) {
;
} else { break; }
switch (a)
{
case 0:
break;
default:
break;
}
} catch (Exception e) { break; } finally { break; }
}
synchronized (this) { do { x = 2; } while (x == 2); }
synchronized (this) {
do {} while (x == 2);
}
for (int k = 0; k < 1; k++) { String innerBlockVariable = ""; }
for (int k = 0; k < 1; k++) {}
return a;
}
static { int x = 1; }
void method2()
{
boolean flag = false;
if (flag) { String.valueOf("foo"); }
}
}
class Absent_CustomFieldSerializer {
public static void serialize() {}
}
class Absent_CustomFieldSerializer10
{
public Absent_CustomFieldSerializer10() {}
}
class EmptyClass {}
interface EmptyInterface {}
|