summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/java/double_brace.java
blob: 8ba15c475dea3d61467dc32f82b3b1671b783d99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
member.func(new List() {{
    add("Text");
    add("Text",
        "Hello");
}});


private static final Set<String> VALID_CODES = new HashSet<String>()
{{
	add("XZ13s");
	add("AB21/X");
	add("YYLEX");
	add("AR2D");
 }};

add(new JPanel(){{
	setLayout(...);
	setBorder(...);
	add(new JLabel(...));
	add(new JSpinner(...));
 }});