1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package com.puppycrawl.tools.checkstyle.checks.whitespace.whitespacearound;
16
17 public class InputWhitespaceAroundArrayInitialization {
18
19 public void arrayInitTest() {
20
21 final int[] COLORS = new int[]{5 };
22
23 final int[] COLORS1 = new int[] {5 };
24
25 final String[][] COLORS2 = {{""}, {""}};
26
27 final String[][] COLORS21
28 = { {"", ""},{""} };
29
30 final String[][] COLORS22 = { {"White", "Yellow"}, {"Pink"} };
31
32 final String[][][] COLORS31 = { { {"Black", "Blue"}, {"Gray", "White"}},
33 { {"Green", "Brown", "Magneta"}},
34 { {"Red", "Purple", "Violet"}} };
35
36 final String[][][] COLORS32 = { {{"Red", "Green"},{"Pink"}} };
37
38 final String[][][] COLORS33 = {{{"White"}}};
39
40 final String[][][][] COLORS41 = { { { {"Green"}}, { {"Purple"}}}, { { {"Yellow"}}} };
41
42 final String[][][][] COLORS42 = {
43 { {{"", ""},
44 {"Gray", "Black"},},},
45 { { {"Red"}}}};
46
47 }
48
49 }