View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
2   
3   public class InputJavadocMethodMissingJavadocTags {
4       /**
5        * Missing return.
6        *
7        * @param number to return
8        * @throws ThreadDeath sometimes
9        */
10      int missingReturn(int number) throws ThreadDeath {
11          return number;
12      }
13  
14      /**
15       * Missing param.
16       *
17       * @return number
18       * @throws ThreadDeath sometimes
19       */
20      int missingParam(int number) throws ThreadDeath {
21          return number;
22      }
23  
24      /**
25       * Missing throws.
26       *
27       * @param number to return
28       * @return number
29       */
30      int missingThrows(int number) throws ThreadDeath {
31          return number;
32      }
33  
34      /**
35       * Missing return, but {@inheritDoc} is present.
36       *
37       * @param number to return
38       * @throws java.util.NoSuchElementException sometimes
39       */
40      int missingReturnButInheritDocPresent(int number) throws java.util.NoSuchElementException {
41          return number;
42      }
43  
44      /**
45       * Missing return in the middle.
46       *
47       * @param number to return
48       * @return
49       * @throws java.util.NoSuchElementException sometimes
50       */
51      private int missingReturnInTheMiddle(int number) {
52          return number;
53      }
54  
55      /**
56       * Missing return at the end.
57       *
58       * @param number to return
59       * @return
60       */
61      private int missingReturnAtTheEnd(int number) {
62          return number;
63      }
64  
65      /**
66       * Missing return at the end followed by empty line.
67       *
68       * @param number to return
69       * @return
70       * 
71       */
72      private int missingReturnAtTheEndFollowedByEmptyLine(int number) {
73          return number;
74      }
75  }