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>Some Paragraph. 15 * 16 */ 17 class InputJavadocParagraphCorrect { 18 19 /** 20 * Some Summary. 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 Summary. 30 * 31 * <p>Some Paragraph. 32 * 33 * <pre> 34 * class Foo { 35 * 36 * void foo() {} 37 * } 38 * </pre> 39 * 40 * @see <a href="example.com"> 41 * Documentation about GWT emulated source</a> 42 */ 43 boolean emulated() {return false;} 44 45 /** 46 * Some Summary. 47 * 48 *<pre> 49 * Test 50 * </pre> 51 * 52 * <pre> 53 * Test 54 * </pre> 55 */ 56 boolean test() {return false;} 57 58 /** 59 * Some Summary. 60 * 61 * <p>Some Paragraph. 62 * 63 */ 64 class InnerInputJavadocParagraphCorrect { 65 66 /** 67 * Some Summary. 68 * 69 * <p>Some Paragraph. 70 * 71 * <p>Some Paragraph. 72 * 73 * @since 8.0 74 */ 75 public static final byte NUL = 0; 76 77 /** 78 * Some Summary. 79 * 80 * <p>Some Paragraph. 81 * 82 * @see <a href="example.com"> 83 * Documentation about GWT emulated source</a> 84 */ 85 boolean emulated() {return false;} 86 } 87 88 InnerInputJavadocParagraphCorrect anon = new InnerInputJavadocParagraphCorrect() { 89 90 /** 91 * Some Summary. 92 * 93 * <p>Some Paragraph. 94 * 95 * <p>Some Paragraph. 96 * 97 * @since 8.0 98 */ 99 public static final byte NUL = 0; 100 101 /** 102 * Some summary with space at the end of first line. 103 * 104 * <p>Some Paragraph. 105 * 106 * <p>Some Paragraph. 107 * 108 * @see <a href="example.com"> 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 {}