1 package com.puppycrawl.tools.checkstyle; 6 7 11 public class InputArrayTypeStyle 12 { 13 private int[] javaStyle = new int[0]; 14 private int cStyle[] = new int[0]; 15 16 public static void mainJava(String [] aJavaStyle) 17 { 18 } 19 20 public static void mainC(String aCStyle[]) 21 { 22 final int[] blah = new int[0]; 23 final boolean isOK1 = aCStyle instanceof String []; 24 final boolean isOK2 = aCStyle instanceof java.lang.String []; 25 final boolean isOK3 = blah instanceof int[]; 26 } 27 28 public class Test 29 { 30 public Test[] 31 variable; 32 33 public Test[] 34 getTests() 35 { return null; 37 } 38 39 public Test[] getNewTest() 40 { 41 return null; 42 } 43 } 44 } 45 | Popular Tags |