View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.coding.arraytrailingcomma;
2   
3   public class InputArrayTrailingComma
4   {
5       int[] a1 = new int[] 
6       {
7           1,
8           2,
9           3,
10      };
11  
12      int[] a2 = new int[] 
13      {
14          1,
15          2,
16          3
17      };
18  
19      int[] b1 = new int[] {1, 2, 3,};
20      int[] b2 = new int[] {1, 2, 3};
21  
22      int[][] c1 = new int[][] {{1, 2,}, {3, 3,}, {5, 6,},};
23      int[][] c2 = new int[][] {{1, 2}, {3, 3,}, {5, 6,}};
24  
25      int[][] d1 = new int[][] 
26      {
27          {1, 2,},
28          {3, 3,},
29          {5, 6,},
30      };
31      int[][] d2 = new int[][] 
32      {
33          {1, 
34           2}, 
35          {3, 3,}, 
36          {5, 6,}
37      };
38  
39      int[] e1 = new int[] {
40      };
41  
42      int[] f1 = new int[] {0, 1
43      };
44  
45      int[][] f2 = new int[][]
46      {
47          {1,
48           2,},
49      };
50  
51      int[] f3 = new int[]{
52              1,
53              2
54              ,
55      };
56  
57      int[] f4 = new int[]{
58              1,
59              2
60              ,};
61  }