1 package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
2
3
4
5 public class InputJavadocMethod_01 {
6
7
8
9
10 public void doStuff1() throws TestException1 {
11 try {
12 doStuff2();
13 } catch (final TestException2 e) { }
14 throw new InputJavadocMethod_01().new TestException1("");
15 }
16
17
18
19 private static void doStuff2() throws TestException2 {
20 throw new TestException2("");
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 }