1 /* 2 JavadocParagraph 3 violateExecutionOnNonTightHtml = (default)false 4 allowNewlineParagraph = false 5 6 7 */ 8 9 package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocparagraph; 10 11 public class InputJavadocParagraphIncorrect5 { 12 13 /** 14 * <h1><p>Testing....</h1> 15 * 16 * <h6><b><p>Test</b></h6> 17 * 18 * <table> 19 * <p> 20 * test 21 * 22 * </table> 23 */ 24 void fooooo() {} 25 26 27 /** 28 * <b><p>testtttt.....</b> 29 * 30 * <b> 31 * 32 * <p>testtttt..... 33 * 34 * </b> 35 * 36 * <h1> 37 * 38 * <p>testtttt..... 39 * 40 * </h1> 41 * 42 * <p> test... 43 * 44 * <h1></h1> 45 * 46 * <p> 47 * 48 * <h1></h1> 49 */ 50 // violation 8 lines above '<p> tag should be placed immediately before the first word' 51 // 2 violations 5 lines above: 52 // '<p> tag should be placed immediately before the first word' 53 // '<p> tag should not precede HTML block-tag '<h1>'' 54 void foooooo() {} 55 56 /** 57 * <ul> 58 * <li>1</li> 59 * <li>1</li> 60 * <ul> 61 * <p>test 62 * </ul> 63 * </ul> 64 */ 65 void fooooooo() {} 66 67 // 2 violations 6 lines below: 68 // '<p> tag should be placed immediately before the first word' 69 // '<p> tag should not precede HTML block-tag '<ul>'' 70 /** 71 * Some Summary. 72 * 73 * <p> 74 * <!-- THIS COMMENT WILL GET IGNORED --> 75 * <ul> 76 * <li>Item 1</li> 77 * <li>Item 2</li> 78 * <li>Item 3</li> 79 * </ul> 80 */ 81 private static final String NAME = "Heisenberg"; 82 83 /** 84 * Some Summary. 85 * 86 * <p>{@code com.company.MyClass$Nested#myMethod(String, int)} 87 * <ul> 88 * <li>Item 1</li> 89 * <li>Item 2</li> 90 * <li>Item 3</li> 91 * </ul> 92 */ 93 private static final String NAME2 = "Jesse Pinkman"; 94 }