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 summary.
13   *
14   * <p><h1>Testing...</h1>
15   */
16  // violation 2 lines above '<p> tag should not precede HTML block-tag '<h1>''
17  public class InputJavadocParagraphIncorrect4 {
18      // violation 4 lines below '<p> tag should not precede HTML block-tag '<ul>''
19      /**
20       * Some summary.
21       *
22       *<p>
23       *  <ul>
24       *    <p>
25       *      <li>1</li> should NOT give violation as there is not empty line before
26       *  </ul>
27       *
28       *
29       * <p><b>testing</b> ok, inline HTML tag. Not a block-level tag
30       */
31      public void foo() {}
32  
33      // violation 4 lines below '<p> tag should not precede HTML block-tag '<table>''
34      /**
35       *  Some summary.
36       *
37       * <p>
38       *  <table>
39       *  </table>
40       *
41       * <p>This is allowed<h1>Testing....</h1>
42       */
43      public void fooo() {}
44  
45      // violation 4 lines below '<p> tag should be placed immediately before the first word'
46      /**
47       * <h1>Testing....</h1>
48       *
49       * <p>     Test<h1>test</h1>
50       *
51       * <p>    <ol>test</ol>
52       *
53       * <p><b><h1>Nesting....</h1></b>
54       */
55      // 2 violations 4 lines above:
56      // '<p> tag should be placed immediately before the first word'
57      // '<p> tag should not precede HTML block-tag '<ol>''
58      void foooo() {}
59  }