View Javadoc
1   /*
2   NoArrayTrailingComma
3   
4   
5   */
6   
7   package com.puppycrawl.tools.checkstyle.checks.coding.noarraytrailingcomma;
8   
9   public class InputNoArrayTrailingComma {
10  
11      int[] t1 = new int[] {
12              1,
13              2,
14              3
15      };
16  
17      int[] t2 = new int[] {
18              1,
19              2,
20              3, // violation
21      };
22  
23      int[] t3 = new int[] {1,2,3};
24  
25      int[] t4 = new int[] {1,2,3,}; // violation
26  
27      int[][] t5 = new int[][] {{1, 2}, {3, 3}, {5, 6}};
28  
29      int[][] t6 = new int[][] {{1, 2}, {3, 3}, {5, 6},}; // violation
30  
31      int[][] t7 = new int[][]
32      {
33          {1, 2},
34          {3, 3},
35          {5, 6}
36      };
37  
38      int[][] t8 = new int[][]
39      {
40          {1,
41           2},
42          {3, 3},
43          {5, 6}, // violation
44      };
45  
46      int[][] t9 = new int[][] {
47              {1,2,}, // violation
48              {2,3}
49      };
50  
51      int[][] t10 = new int[][] {
52              {1,
53              2,} // violation
54      };
55  
56      int[][] t11 = new int[][] {
57              {1,
58              2}
59      };
60  
61      int[] t12 = new int[] {1};
62  
63      int[] t13 = new int[]{};
64  
65      int[][] t14 = new int[][]{};
66  
67      int[] t15 = new int[] {1,}; // violation
68  }