1 6 7 package com.puppycrawl.tools.checkstyle.indentation; 8 9 13 public class InputInvalidArrayInitIndent { 14 15 int[] array = new int[] {1, 2, 3}; 16 17 int[] arrayb = new int[] {1, 2, 3}; 18 int[] arrayc = new int[] {1, 2, 3}; 19 20 int[] array2 = new int[] { 21 1, 2, 3 22 }; 23 24 int[] array2b = new int[] { 25 1, 2, 3 26 }; 27 28 int[] array3 = new int[] { 29 1, 30 2, 31 3 32 }; 33 34 35 int[] array4 = new int[] 36 { 37 1, 38 2, 39 3 40 }; 41 42 43 int[] array5 = new int[] 44 {1, 2, 3}; 45 46 47 int[] array6 = new int[] { 1, 2, 48 3, 49 4,}; 50 51 52 53 int[] array7 = new int[] { 54 1, 2, 55 3 56 }; 57 58 59 int[] array8 = new int[] { }; 60 61 int[] array9 = new int[] { 62 }; 63 64 int[][] array10 = new int[][] { 65 new int[] { 1, 2, 3}, 66 new int[] { 1, 2, 3}, 67 }; 68 69 70 int[][] array10b 71 = new int[][] { 72 new int[] { 1, 2, 3}, 73 new int[] { 1, 2, 3}, 74 }; 75 76 private void func1(int[] arg) { 77 78 } 79 80 81 82 public InputInvalidArrayInitIndent() { 83 84 func1(new int[] { 85 1, 2, 3 86 }); 87 } 88 89 private static char[] sHexChars = { 90 '0', '1', '2', '3', '4', '5', '6', '7', 91 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; 92 93 private void myFunc3() 94 { 95 char[] sHexChars2 = { 96 '0', '1', '2', '3', '4', '5', '6', '7', 97 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' }; 98 99 char[] sHexChars3 = { 100 '0', '1', '2', '3', '4', '5', '6', '7', 101 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' 102 }; 103 104 char[] sHexChars4 = 105 { 106 '0', '1', '2', '3', '4', '5', '6', '7', 107 '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' 108 }; 109 110 } 111 112 } 113 | Popular Tags |