1 package com.google.checkstyle.test.chapter4formatting.rule4832nocstylearray;
2
3
4 public class InputNoCstyleArrays {
5 private int[] javastyle = new int[0];
6 private int cstyle[] = new int[0];
7
8
9 public static void mainJava(String[] javastyle) {}
10
11
12 public static void mainC(String cstyle[]) {
13 final int[] blah = new int[0];
14 final boolean isok1 = cstyle instanceof String[];
15 final boolean isok2 = cstyle instanceof java.lang.String[];
16 final boolean isok3 = blah instanceof int[];
17 int[] array[] = new int[2][2];
18 int array2[][][] = new int[3][3][3];
19
20
21
22
23 }
24
25
26 public class Test {
27 public Test[] variable;
28
29 public Test[] getTests() {
30 return null;
31 }
32
33 public Test[] getNewTest() {
34 return null;
35 }
36
37 public Test getOldTest()[] {
38 return null;
39 }
40
41
42
43
44 public Test getOldTests()[][] {
45 return null;
46 }
47
48 public Test[] getMoreTests()[] {
49 return null;
50 }
51
52 public Test[][] getTests2() {
53 return null;
54 }
55 }
56
57 int[] array[] = new int[2][2];
58 int array2[][][] = new int[3][3][3];
59
60
61
62
63 }