View Javadoc
1   package com.google.checkstyle.test.chapter7javadoc.rule712paragraphs;
2   
3   /**
4    * Some Javadoc.
5    *
6    * <p>Some Javadoc.
7    */
8   class InputCorrectJavadocParagraph {
9   
10    /**
11     * Some Javadoc.
12     *
13     * <p>{@code function} will never be invoked with a null value.
14     *
15     * @since 8.0
16     */
17    public static final byte NUL = 0;
18  
19    /**
20     * Some Javadoc.
21     *
22     * <p>Some Javadoc.
23     *
24     * <pre>
25     * class Foo {
26     *
27     *   void foo() {}
28     * }
29     * </pre>
30     *
31     * @see <a href="example.com">Documentation about GWT emulated source</a>
32     */
33    boolean emulated() {
34      return false;
35    }
36  
37    /**
38     * Some Javadoc.
39     *
40     * <p>Some Javadoc.
41     */
42    class InnerInputCorrectJavaDocParagraphCheck {
43  
44      /**
45       * Some Javadoc.
46       *
47       * <p>Some Javadoc.
48       *
49       * <p>Some Javadoc.
50       *
51       * @since 8.0
52       */
53      public static final byte NUL = 0;
54  
55      /**
56       * Some Javadoc.
57       *
58       * <p>Some Javadoc.
59       *
60       * @see <a href="example.com">Documentation about GWT emulated source</a>
61       */
62      boolean emulated() {
63        return false;
64      }
65    }
66  
67    InnerInputCorrectJavaDocParagraphCheck anon =
68        new InnerInputCorrectJavaDocParagraphCheck() {
69  
70          /**
71           * Some Javadoc.
72           *
73           * <p>Some Javadoc.
74           *
75           * <p>Some Javadoc.
76           *
77           * @since 8.0
78           */
79          public static final byte NUL = 0;
80  
81          /**
82           * Some Javadoc.
83           *
84           * <p>Some Javadoc.
85           *
86           * <p>Some Javadoc.
87           *
88           * @see <a href="example.com">Documentation about GWT emulated source</a>
89           */
90          boolean emulated() {
91            return false;
92          }
93        };
94  
95    /**
96     * Some summary.
97     *
98     * <p>testing
99     *
100    * <p>testing
101    */
102   class InnerPrecedingPtag {
103     /**
104      * Some summary.
105      *
106      * <p><b>testing</b>
107      */
108     public void foo() {}
109 
110     /**
111      * Some summary.
112      *
113      * <table>
114      *   <thead>
115      *     <p></p>
116      *   </thead>
117      * </table>
118      */
119     public void fooo() {}
120 
121     /**
122      * Some summary.
123      *
124      * <p>testing...
125      *
126      * <pre>testing...</pre>
127      */
128     public void foooo() {}
129   }
130 }