View Javadoc
1   /*
2   JavadocMethod
3   allowedAnnotations = MyAnnotation
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 InputJavadocMethodsNotSkipWritten {
16      /**
17       * Description.
18       *
19       * @param BAD
20       *            This param doesn't exist.
21       */
22      // violation 3 lines above 'Unused @param tag for 'BAD'.'
23      @MyAnnotation
24      public void InputJavadocMethodsNotSkipWritten() {
25      }
26  
27      /**
28       * Description.
29       *
30       * @param BAD
31       *            This param doesn't exist.
32       */
33      // violation 3 lines above 'Unused @param tag for 'BAD'.'
34      @MyAnnotation
35      public void test() {
36      }
37  
38      /** Description. */
39      @MyAnnotation
40      public void test2() { // ok
41      }
42  
43      /** Description. */
44      @MyAnnotation
45      public String test3(int a) throws Exception { // ok
46          return "";
47      }
48  }
49  @interface MyAnnotation {}