Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #4586: Modified AbstractJavadocCheckTest.java and moved its fil…
…es to the abstractjavadoc subdirectory
- Loading branch information
Showing
11 changed files
with
183 additions
and
17 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
...heckstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocCorrectJavaDocParagraph.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.abstractjavadoc; | ||
|
||
/** | ||
* Some Javadoc. | ||
* | ||
* <p>Some Javadoc. | ||
* | ||
*/ | ||
class InputAbstractJavadocCorrectJavaDocParagraph { | ||
|
||
/** | ||
* 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 {} |
11 changes: 11 additions & 0 deletions
11
...ycrawl/tools/checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocCustomTag.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,11 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
|
||
public class InputAbstractJavadocCustomTag { | ||
/** | ||
* {@customTag} | ||
*/ | ||
void customTag() {} | ||
|
||
/** {@customTag} */ | ||
void customTag2() {} | ||
} |
7 changes: 7 additions & 0 deletions
7
.../checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocInvalidAtSeeReference.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,7 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
|
||
/** | ||
* @see javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent() | ||
*/ | ||
class InputAbstractJavadocInvalidAtSeeReference { | ||
} |
4 changes: 4 additions & 0 deletions
4
.../puppycrawl/tools/checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocMain.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,4 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
/** Javadoc */ | ||
public class InputAbstractJavadocMain { | ||
} |
4 changes: 4 additions & 0 deletions
4
.../checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocNumberFormatException.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,4 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
|
||
/** <ul><li>a' {@link EntityEntry} (by way of {@link #;}</li></ul> */ | ||
class InputAbstractJavadocNumberFormatException{} |
12 changes: 12 additions & 0 deletions
12
...wl/tools/checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocParsingErrors.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,12 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
|
||
/** | ||
* <unclosedTag> | ||
*/ | ||
class InputAbstractJavadocParsingErrors { | ||
/** | ||
* <img src="singletonTag"/></img> | ||
*/ | ||
void singletonTag() { | ||
} | ||
} |
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
...s/checkstyle/checks/javadoc/abstractjavadoc/InputAbstractJavadocPositionOnlyComments.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,3 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
/** Javadoc for import */ | ||
import java.io.Serializable; |
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...ecks/javadoc/abstractjavadoc/InputAbstractJavadocUnclosedTagAndInvalidAtSeeReference.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,12 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstractjavadoc; | ||
|
||
/** | ||
* <unclosedTag> | ||
*/ | ||
class InputAbstractJavadocUnclosedTagAndInvalidAtSeeReference { | ||
/** | ||
* @see javax.swing.tree.DefaultTreeCellRenderer.getTreeCellRendererComponent() | ||
*/ | ||
void invalidAtSeeReference() { | ||
} | ||
} |