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