View Javadoc
1   /*xml
2   <module name="Checker">
3     <module name="TreeWalker">
4       <module name="JavadocParagraph">
5         <property name="allowNewlineParagraph" value="false"/>
6       </module>
7     </module>
8   </module>
9   */
10  package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocparagraph;
11  
12  // xdoc section -- start
13  // violation 5 lines below '<p> tag should be preceded with an empty line'
14  /**
15   * No tag (ok).
16   *
17   * <p>Tag immediately before the text (ok).
18   * <p>No blank line before the tag.
19   *
20   * <p>
21   * New line after tag (ok).
22   *
23   * <p> Whitespace after tag (ok).
24   *
25   */
26  // violation 6 lines above 'tag should be placed immediately before the first word'
27  // violation 4 lines above 'tag should be placed immediately before the first word'
28  public class Example2 {
29  }
30  // xdoc section -- end