1
2
3
4
5
6
7
8
9
10
11
12
13
14 package com.puppycrawl.tools.checkstyle.checks.javadoc.missingjavadocmethod;
15
16
17
18
19
20 public class InputMissingJavadocMethod_02 {
21
22
23
24 class TestException1 extends Exception {
25
26
27
28 TestException1(String messg) {
29 super(messg);
30 }
31 }
32
33
34 public static class TestException2 extends Exception {
35
36
37
38 TestException2(String messg) {
39 super(messg);
40 }
41 }
42
43
44
45 public void doStuff1() throws TestException1 {
46 try {
47 doStuff2();
48 } catch (final TestException2 e) { }
49 throw new InputMissingJavadocMethod_02().new TestException1("");
50 }
51
52
53
54 private static void doStuff2() throws TestException2 {
55 throw new TestException2("");
56 }
57 }