View Javadoc
1   /*
2   JavadocMethod
3   allowInlineReturn = (default)false
4   allowedAnnotations = (default)Override
5   validateThrows = (default)false
6   accessModifiers = (default)public, protected, package, private
7   allowMissingParamTags = (default)false
8   allowMissingReturnTag = (default)false
9   tokens = (default)METHOD_DEF, CTOR_DEF, ANNOTATION_FIELD_DEF, COMPACT_CTOR_DEF
10  
11  
12  */
13  
14  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
15  
16  public class InputJavadocMethodDoNotAllowInlineReturn {
17  
18      /**
19       * {@return the foo}
20       */
21      public int getFoo() { return 0; }
22      // violation above, '@return tag should be present and have description.'
23  
24      /**
25       * Returns the bar
26       * @return the bar
27       */
28      public int getBar() { return 0; }
29  
30      /**
31       * Returns the fiz
32       */
33      public int getFiz() { return 0; }
34      // violation above, '@return tag should be present and have description.'
35  
36      /**
37       * Returns the baz
38       * @see "getFoo"
39       */
40      public int getBaz() { return 0; }
41      // violation above, '@return tag should be present and have description.'
42  }