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 // 2 violations 5 lines below: 12 // '<p> tag should be placed immediately before the first word' 13 // 'tag should be preceded with an empty line.' 14 /** 15 * Some Summary. 16 * <p> 17 * Some Paragraph.<p> 18 */ 19 // 2 violations 2 lines above: 20 // '<p> tag should be placed immediately before the first word' 21 // 'tag should be preceded with an empty line.' 22 class InputJavadocParagraphIncorrect2 { 23 24 // 2 violations 4 lines below: 25 // '<p> tag should be placed immediately before the first word' 26 // 'tag should be preceded with an empty line.' 27 /** 28 * Some Summary.<P> 29 * 30 * <p> Some paragraph. 31 * 32 * @since 8.0 33 */ 34 // violation 4 lines above '<p> tag should be placed immediately before the first word' 35 public static final byte NUL = 0; 36 37 // violation 2 lines below 'tag should be preceded with an empty line.' 38 /** 39 * Some <p>Summary. 40 * 41 * <p> Some paragraph. 42 * 43 * @see <a href="example.com"> 44 * Documentation about GWT emulated source</a> 45 */ 46 // violation 5 lines above '<p> tag should be placed immediately before the first word' 47 boolean emulated() {return false;} 48 49 // 3 violations 7 lines below: 50 // 'Redundant <p> tag.' 51 // '<p> tag should be placed immediately before the first word' 52 // 'tag should be preceded with an empty line.' 53 // 2 violations 4 lines below: 54 // '<p> tag should be placed immediately before the first word' 55 // 'tag should be preceded with an empty line.' 56 /**<p>Some Summary.<p> 57 * <p> 58 * <p><p> 59 * <p> Some paragraph.<p>*/ 60 // 3 violations 2 lines above: 61 // '<p> tag should be preceded with an empty line.' 62 // '<p> tag should be placed immediately before the first word' 63 // '<p> tag should be preceded with an empty line.' 64 // 4 violations 5 lines above: 65 // '<p> tag should be placed immediately before the first word' 66 // '<p> tag should be preceded with an empty line.' 67 // '<p> tag should be placed immediately before the first word' 68 // '<p> tag should be preceded with an empty line.' 69 class InnerInputJavadocParagraphIncorrect { 70 71 // 2 violations 4 lines below: 72 // '<p> tag should be placed immediately before the first word' 73 // '<p> tag should be preceded with an empty line.' 74 /** 75 * Some Summary.<p> 76 * 77 * @since 8.0 78 */ 79 public static final byte NUL = 0; 80 81 // 2 violations 5 lines below: 82 // '<p> tag should be placed immediately before the first word' 83 // 'Redundant <p> tag.' 84 // violation 5 lines below '<p> tag should be placed immediately before the first word' 85 /** 86 * <p> 87 * Some Summary. 88 * 89 * <P> 90 * 91 * <p> 92 * Some paragraph.<p> 93 * @see <a href="example.com"> 94 * Documentation about GWT emulated source</a> 95 */ 96 // violation 5 lines above '<p> tag should be placed immediately before the first word' 97 // 2 violations 5 lines above: 98 // '<p> tag should be placed immediately before the first word' 99 // '<p> tag should be preceded with an empty line.' 100 boolean emulated() {return false;} 101 102 /** 103 * * <p> Some Summary.<p>*/ 104 // 4 violations above: 105 // '<p> tag should be placed immediately before the first word' 106 // '<p> tag should be preceded with an empty line.' 107 // '<p> tag should be placed immediately before the first word' 108 // '<p> tag should be preceded with an empty line.' 109 int yyy = 99; 110 } 111 }