View Javadoc
1   /*
2   JavadocMethod
3   allowedAnnotations = (default)Override
4   validateThrows = (default)false
5   accessModifiers = (default)public, protected, package, private
6   allowMissingParamTags = (default)false
7   allowMissingReturnTag = (default)false
8   tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF
9   
10  
11  */
12  
13  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
14  
15  public class InputJavadocMethod_1379666 {
16      /**
17       * @throws BadStringFormat some text
18       */
19      public void ok() throws BadStringFormat { // ok
20      }
21  
22  
23      /**
24       * Some comment.
25       * @throws java.lang.Exception some text
26       */
27      public void error1() // ok
28          throws java.lang.Exception {
29      }
30  
31      /**
32       * @throws InputJavadocMethod_1379666.BadStringFormat some text
33       */
34      public void error2() throws InputJavadocMethod_1379666.BadStringFormat { // ok
35      }
36  
37      /**
38       * Some exception class.
39       */
40      public static class BadStringFormat extends Exception { // ok
41          /**
42           * Some comment.
43           * @param s string.
44           */
45          BadStringFormat(String s) { // ok
46              super(s);
47          }
48      }
49  }