forked from DrJavaAtRice/drjava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIndentProblems.indent
More file actions
54 lines (46 loc) · 780 Bytes
/
IndentProblems.indent
File metadata and controls
54 lines (46 loc) · 780 Bytes
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
/* Note: a few of the indentations represented here are
* not agreed on (like anonymous inner classes being
* aligned to the far right), but drjava does something
* unacceptable on all these examples */
for()
for()
System.out.println(4);
for()
for(){
System.out.println(5);
}
int [] x = new int {
2,
3,
}
method(new int[] {1,
2,
3,
});
method(int arg1,
int arg2,
);
method(new Object() {
public int foo();
}
);
method (int arg1,
new Object() {
public int foo();
}
);
method(new WindowAdapter(){
public void x(){
}
},
new WindowAdapter() {
public void x(){
}
},
new WindowAdapter() {
public void x(){
}
}
);
method(int arg1
);