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