1 @java.lang.annotation.Documented package com.puppycrawl.tools.checkstyle; 7 import java.io.*; 8 16 final class InputSimple 17 { 18 22 25 public static final int badConstant = 2; 26 27 public static final int MAX_ROWS = 2; 28 29 30 private static int badStatic = 2; 31 32 private static int sNumCreated = 0; 33 34 35 private int badMember = 2; 36 37 private int mNumCreated1 = 0; 38 39 protected int mNumCreated2 = 0; 40 41 42 private int[] mInts = new int[] {1,2, 3, 43 4}; 44 45 49 public static int sTest1; 50 51 protected static int sTest3; 52 53 static int sTest2; 54 55 56 int mTest1; 57 58 public int mTest2; 59 60 64 71 int test1(int badFormat1,int badFormat2, 72 final int badFormat3) 73 throws java.lang.Exception 74 { 75 return 0; 76 } 77 78 79 private void longMethod() 80 { 81 } 100 101 102 private InputSimple() 103 { 104 } 113 114 115 private void localVariables() 116 { 117 int abc = 0; 119 int ABC = 0; 120 121 final int cde = 0; 123 final int CDE = 0; 124 125 for (int k = 0; k < 1; k++) 127 { 128 String innerBlockVariable = ""; 129 } 130 for (int I = 0; I < 1; I++) 131 { 132 String InnerBlockVariable = ""; 133 } 134 } 135 136 137 void ALL_UPPERCASE_METHOD() 138 { 139 } 140 141 142 private static final int BAD__NAME = 3; 143 144 148 149 void errorColumnAfterTabs() 150 { 151 int tab0 =1; 154 int tab1 =1; 155 int tab2 =1; 156 int tab3 =1; 157 int tab4 =1; 158 int tab5 =1; 159 } 160 161 166 167 168 169 170 void veryLong() 171 { 172 189 } 190 191 194 void toManyArgs(int aArg1, int aArg2, int aArg3, int aArg4, int aArg5, 195 int aArg6, int aArg7, int aArg8, int aArg9) 196 { 197 } 198 } 199 200 201 class InputSimple2 202 { 203 204 public void doSomething() 205 { 206 for (Object O : new java.util.ArrayList ()) 208 { 209 210 } 211 } 212 } 213 214 215 enum MyEnum1 216 { 217 218 ABC, 219 220 221 XYZ; 222 223 224 private int someMember; 225 } 226 | Popular Tags |