forked from checkstyle/checkstyle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#4586: Moved InputCorrectJavadocParagraph.java to jav…
…adocparagraph subdirectory and Copied InputInCorrectJavadocParagraph.java to subdirectory
- Loading branch information
Showing
3 changed files
with
119 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
112 changes: 112 additions & 0 deletions
112
...ycrawl/tools/checkstyle/checks/javadoc/javadocparagraph/InputJavaDocParagraphCorrect.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.javadocparagraph; | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
*/ | ||
class InputCorrectJavaDocParagraphCorrect { | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>{@code function} will never be invoked with a null value. | ||
* | ||
* @since 8.0 | ||
*/ | ||
public static final byte NUL = 0; | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* <pre> | ||
* class Foo { | ||
* | ||
* void foo() {} | ||
* } | ||
* </pre> | ||
* | ||
* @see <a href="http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules"> | ||
* Documentation about GWT emulated source</a> | ||
*/ | ||
boolean emulated() {return false;} | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
*<pre> | ||
* Test | ||
* </pre> | ||
* | ||
* <pre> | ||
* Test | ||
* </pre> | ||
*/ | ||
boolean test() {return false;} | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
*/ | ||
class InnerInputCorrectJavaDocParagraphCheck { | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* @since 8.0 | ||
*/ | ||
public static final byte NUL = 0; | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* @see <a href="http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules"> | ||
* Documentation about GWT emulated source</a> | ||
*/ | ||
boolean emulated() {return false;} | ||
} | ||
|
||
InnerInputCorrectJavaDocParagraphCheck anon = new InnerInputCorrectJavaDocParagraphCheck() { | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* @since 8.0 | ||
*/ | ||
public static final byte NUL = 0; | ||
|
||
/** | ||
* Some Javadoc with space at the end of first line. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
* @see <a href="http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModules"> | ||
* Documentation about GWT emulated source</a> | ||
*/ | ||
boolean emulated() {return false;} | ||
}; | ||
} | ||
|
||
/* | ||
* This comment has paragraph without '<p>' tag. | ||
* | ||
* It's fine, because this is plain comment. | ||
*/ | ||
class ClassWithPlainComment {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters