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_01 {
16
17
18
19
20 public void doStuff1() throws TestException1 {
21 try {
22 doStuff2();
23 } catch (final TestException2 e) { }
24 throw new InputJavadocMethod_01().new TestException1("");
25 }
26
27
28
29 private static void doStuff2() throws TestException2 {
30 throw new TestException2("");
31 }
32
33
34 class TestException1 extends Exception {
35
36
37
38 TestException1(String messg) {
39 super(messg);
40 }
41 }
42
43
44 public static class TestException2 extends Exception {
45
46
47
48 TestException2(String messg) {
49 super(messg);
50 }
51 }
52 }