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