View Javadoc
1   package com.google.checkstyle.test.chapter7javadoc.rule72thesummaryfragment;
2   
3   /**
4    * A {@code Foo. Foo}
5    * is a simple Javadoc. Some javadoc.
6    */
7   class InputIncorrectSummaryJavaDocCheck {
8       
9       /**
10       * As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}
11       */
12      void foo3() {}
13      
14  /*warn*//**
15       * @throws Exception if an error occurs
16       */
17      void foo4() throws Exception {}
18      
19      /** An especially short bit of Javadoc. */
20      void foo5() {}
21  
22      /**
23       * An especially short bit of Javadoc.
24       */
25      void foo6() {}
26  
27      /**
28       * Some Javadoc.
29       */
30      public static final byte NUL = 0;
31  
32  /*warn*//**
33       * <a href="mailto:vlad@htmlbook.ru"/> 
34       */
35       class InnerInputCorrectJavaDocParagraphCheck {
36  
37  /*warn*//**
38            * foooo@foooo
39            */
40          public static final byte NUL = 0;
41  
42          /**
43           * Some java@doc.
44           */
45          public static final byte NUL_2 = 0;
46  
47   /*warn*//**
48           * This method
49           * returns some javadoc. Some javadoc.
50           */
51          boolean emulated() {return false;}
52          
53  /*warn*//**
54           * <a href="mailto:vlad@htmlbook.ru"/>
55           */
56          void foo2() {}
57  
58  /*warn*//**
59           * @return the
60           * customer ID some javadoc.
61           */
62          int geId() {return 666;} 
63  
64          /**
65           * As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}.
66           */
67          void foo3() {}
68          
69  /*warn*//**
70           * @throws Exception if an error occurs
71           */
72          void foo4() throws Exception {}
73          
74          /** An especially short bit of Javadoc. */
75          void foo5() {}
76  
77          /**
78           * An especially short bit of Javadoc.
79           */
80          void foo6() {}
81      }
82  
83  /*warn*//**
84        * A {@code InnerInputCorrectJavaDocParagraphCheck} is a simple code.
85        */
86      InnerInputCorrectJavaDocParagraphCheck anon = new InnerInputCorrectJavaDocParagraphCheck() {
87  
88          /**
89           * Some Javadoc.
90           */
91          public static final byte NUL = 0;
92  
93          /**
94           * Some Javadoc.
95           */
96          void emulated(String s) {}
97  
98          /**
99           * As of JDK 1.1, replaced by {@link #setBounds(int,int,int,int)}.
100          */
101         void foo3() {}
102 
103 /*warn*//**
104          * @throws Exception if an error occurs
105          */
106         void foo4() throws Exception {}
107 
108         /** An especially short bit of Javadoc. */
109         void foo5() {}
110 
111         /**
112          * An especially short bit of Javadoc.
113          */
114         void foo6() {}
115     };
116 }