1 package com.puppycrawl.tools.checkstyle; 6 import java.io.IOException ; 7 class InputTags1 9 { 10 private int mMissingJavadoc; 12 13 void method1() 15 { 16 } 17 18 19 void method2() 20 { 21 } 22 23 24 int method3() 25 { 26 return 3; 27 } 28 29 33 int method4(int aOne) 34 { 35 return aOne; 36 } 37 38 39 void method5() 40 throws Exception 41 { 42 } 43 44 48 void method6() 49 throws Exception 50 { 51 } 52 53 54 void method7() 55 throws Exception , NullPointerException 56 { 57 } 58 59 60 void method8(int aOne) 61 { 62 } 63 64 68 void method9(int aOne) 69 { 70 } 71 72 73 void method10(int aOne, int aTwo) 74 { 75 } 76 77 81 void method11() 82 { 83 } 84 85 89 int method12() 90 { 91 return 0; 92 } 93 94 109 void method13(int aOne, int aTwo, int aThree, int aFour, int aFive) 110 { 111 } 112 113 114 void method14(int aOne) 115 { 116 } 117 118 120 void method14() 121 throws java.io.IOException 122 { 123 } 124 125 126 127 static 129 { 130 int x = 1; } 132 133 { 135 int z = 2; } 137 138 139 private static final int 140 ON_SECOND_LINE = 2; 141 142 143 150 void method15() 151 throws java.io.IOException 152 { 153 } 154 155 156 public String toString() 157 { 158 return super.toString(); 159 } 160 161 162 static final int serialVersionUID = 666; 163 164 171 void method16(int aOne) 173 { 174 } 175 176 177 182 void method17() 183 throws IllegalMonitorStateException 184 { 185 } 186 187 192 void method18() 193 throws IOException 194 { 195 throw new IOException ("to make compiler happy"); 196 } 197 198 202 void method19() 203 throws java.io.IOException 204 { 205 throw new IOException ("to make compiler happy"); 206 } 207 208 216 int method20() 217 { 218 return 579190; 219 } 220 221 227 void method21() 228 throws IOException 229 { 230 } 231 232 238 void method22() 239 throws IOException 240 { 241 } 242 243 246 void method23() throws WrongException 247 { 248 } 249 250 256 void method24() throws IOException 257 { 258 } 259 260 265 266 void method25() 267 { 268 } 269 270 271 int method26() 272 { return 0; 273 } 274 275 279 int method27(int aParam) 280 { return 0; 281 } 282 283 287 int method28(int aParam) 288 { return 0; 289 } 290 291 296 public int foo(Object _arg) { 297 298 return 1; 299 } 300 } 301 302 enum InputTagsEnum 303 { 304 CONSTANT_A, 305 306 309 CONSTANT_B, 310 311 CONSTANT_C 312 { 313 316 public void someMethod() 317 { 318 } 319 320 public void someOtherMethod() 321 { 322 323 } 324 } 325 } 326 327 @interface InputTagsAnnotation 328 { 329 String someField(); 330 int A_CONSTANT = 0; 331 332 int B_CONSTANT = 1; 333 334 String someField2(); 335 } 336 337 340 public class InputTags { 341 342 345 public InputTags() { 346 } 347 348 355 public final String myMethod(final String arg1, 356 final Object arg2) 357 throws Exception 358 { 359 return null; 360 } 361 } 362 363 366 class WrongException extends RuntimeException 367 { 368 } 369 | Popular Tags |