View Javadoc
1   /*
2   JavadocParagraph
3   violateExecutionOnNonTightHtml = (default)false
4   allowNewlineParagraph = (default)true
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocparagraph;
10  
11  /**
12   * Some Javadoc.
13   *
14   * <p>Some Javadoc.
15   *
16   */
17  class InputJavadocParagraphCorrect {
18  
19      /**
20       * Some Javadoc.
21       *   
22       * <p>{@code function} will never be invoked with a null value.
23       *
24       * @since 8.0
25       */
26      public static final byte NUL = 0;
27  
28      /**
29       * Some Javadoc.
30       *
31       * <p>Some Javadoc.
32       *
33       * <pre>
34       * class Foo {
35       *
36       *   void foo() {}
37       * }
38       * </pre>
39       *
40       * @see <a href="http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules">
41       *     Documentation about GWT emulated source</a>
42       */
43      boolean emulated() {return false;}
44  
45      /**
46       * Some Javadoc.
47       *
48       *<pre>
49       * Test
50       * </pre>
51       *
52       * <pre>
53       * Test
54       * </pre>
55       */
56      boolean test() {return false;}
57  
58      /**
59       * Some Javadoc.
60       *
61       * <p>Some Javadoc.
62       *
63       */
64       class InnerInputJavadocParagraphCorrect {
65  
66          /**
67           * Some Javadoc.
68           *
69           * <p>Some Javadoc.
70           *
71           * <p>Some Javadoc.
72           *
73           * @since 8.0
74           */
75          public static final byte NUL = 0;
76  
77          /**
78           * Some Javadoc.
79           *
80           * <p>Some Javadoc.
81           *
82           * @see <a href="http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules">
83           *     Documentation about GWT emulated source</a>
84           */
85          boolean emulated() {return false;}
86      }
87  
88       InnerInputJavadocParagraphCorrect anon = new InnerInputJavadocParagraphCorrect() {
89  
90              /**
91           * Some Javadoc.
92           *
93           * <p>Some Javadoc.
94           *
95           * <p>Some Javadoc.
96           *
97           * @since 8.0
98           */
99          public static final byte NUL = 0;
100 
101         /** 
102          * Some Javadoc with space at the end of first line.
103          *
104          * <p>Some Javadoc.
105          *
106          * <p>Some Javadoc.
107          *
108          * @see <a href="http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules">
109          *     Documentation about GWT emulated source</a>
110          */
111         boolean emulated() {return false;}
112     };
113 }
114 
115 /*
116  *  This comment has paragraph without '<p>' tag.
117  *
118  *  It's fine, because this is plain comment.
119  */
120 class ClassWithPlainComment {}