View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocmethod;
2   
3   /**
4    * The following is a bad tag.
5    * @mytag Hello
6    */
7   public class InputJavadocMethodSmallMethods extends Some
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       * @return Some javadoc.
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      String foo7() 
58      {
59          return "Fooooooooooooooo"
60                  + "ooooo"
61                  + "ooo";
62      }
63  
64      void foo8() 
65      {
66          foo2();
67      }
68  
69      void foo9() {
70          
71          
72          
73          
74          
75      }
76  
77      @MyAnnotation
78      String foo10() 
79      {
80          return "Fooooooooooooooo"
81                  + "ooooo"
82                  + "ooo";
83      }
84  
85      @Override
86      protected String foo11() 
87      {
88          return "Fooooo"
89          		+ "ooo"
90          		+ "ooooooo"
91                  + "ooooo"
92                  + "ooo";
93      }
94  }
95  
96  @interface MyAnnotation {}
97  
98  class Some {
99      protected String foo11() {
100         return "4";
101     }
102 }