View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
2   
3   
4   /** Test 1. */
5   public class InputJavadocMethod_01 {
6   
7       /** Do 1.
8        * @throws TestException1 when error occurrs.
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      /** Do 2.
17       * @throws TestException2 when error occurrs.
18       */
19      private static void doStuff2() throws TestException2 {
20          throw new TestException2("");
21      }
22      /** Exception 1.
23       */
24      class TestException1 extends Exception {
25          /** Exception 1.
26           * @param messg message
27           */
28          TestException1(String messg) {
29              super(messg);
30          }
31      }
32      /** Exception 2.
33       */
34      public static class TestException2 extends Exception {
35          /** Exception 2.
36           * @param messg message
37           */
38          TestException2(String messg) {
39              super(messg);
40          }
41      }
42  }