View Javadoc
1   package com.google.checkstyle.test.chapter7javadoc.rule73wherejavadocused;
2   
3   /**
4    * The following is a bad tag.
5    * @mytag Hello
6    */
7   public class InputJavadocMethodCheck extends OverrideClass
8   {
9       //with comments
10  
11      /**
12       * Some javadoc.
13       * @return Some javadoc.
14       */
15      int foo1() 
16      {
17          return 1;
18      }
19  
20      /**
21       * Some javadoc.
22       *
23       */
24      String foo2() 
25      {
26          return "Fooooooooooooooo"
27                  + "ooooo"
28                  + "ooo";
29      }
30  
31      /**
32       * Some javadoc.
33       */
34      void foo3() 
35      {
36          foo2();
37      }
38  
39      /**
40       * Some javadoc.
41       */
42      void foo4() {}
43  
44      //without comments
45  
46      int foo5() 
47      {
48          return 1;
49      }
50  
51      String foo6() 
52      {
53          return "Fooooooooooooooo"
54                  + "oooooooo";
55      }
56  
57      public String foo7() //warn
58      {
59          return "Fooooooooooooooo"
60                  + "ooooo"
61                  + "ooo";
62      }
63  
64      void foo81() 
65      {
66          foo2();
67      }
68  
69      void foo82() {
70          
71          
72          
73          
74          
75      }
76  
77      @MyAnnotation
78      String foo91() 
79      {
80          return "Fooooooooooooooo"
81                  + "ooooo"
82                  + "ooo";
83      }
84  
85      @Override
86      public String foo92() 
87      {
88          return "Fooooo"
89                  + "ooo"
90                  + "ooooooo"
91                  + "ooooo"
92                  + "ooo";
93      }
94  }
95  
96  
97  class OverrideClass {
98  
99      public String foo92()
100     {
101         return "Fooooo"
102                 + "ooo"
103                 + "ooooooo"
104                 + "ooooo"
105                 + "ooo";
106     }
107 }
108 @interface MyAnnotation {}