1
2
3
4
5
6
7
8 package com.puppycrawl.tools.checkstyle.checks.arraytypestyle;
9
10 public class InputArrayTypeStyleOff
11 {
12 private int[] javaStyle = new int[0];
13 private int cStyle[] = new int[0];
14 private int c[] = new int[0];
15
16 public static void mainJava(String[] aJavaStyle)
17
18 {
19 }
20
21 public static void mainC(String aCStyle[])
22 {
23 final int[] blah = new int[0];
24 final boolean isOK1 = aCStyle instanceof String[];
25 final boolean isOK2 = aCStyle instanceof java.lang.String[];
26 final boolean isOK3 = blah instanceof int[];
27 }
28
29 public class Test
30 {
31 public Test[]
32 variable;
33
34 public Test[]
35 getTests()
36 {
37 return null;
38 }
39
40 public Test[] getNewTest()
41 {
42 return null;
43 }
44
45 public Test getOldTest()[]
46 {
47 return null;
48 }
49
50 public Test getOldTests()[][]
51
52
53
54 {
55 return null;
56 }
57
58 public Test[]
59 getMoreTests()[][]
60
61
62
63 {
64 return null;
65 }
66
67 public Test[][] getTests2()
68 {
69 return null;
70 }
71 }
72 public static void foo(java.util.Collection < ? extends InputArrayTypeStyle[] > collection) {}
73 }