forked from checkstyle/checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue checkstyle#13345: Enabled AtClauseOrderCheckExamplesTest
- Loading branch information
1 parent
de71124
commit 6d5b91f
Showing
7 changed files
with
394 additions
and
73 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
58 changes: 58 additions & 0 deletions
58
...ples/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/Example1.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,58 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="AtclauseOrder"/> | ||
</module> | ||
</module> | ||
*/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder; | ||
|
||
import java.io.Serializable; | ||
|
||
// xdoc section -- start | ||
/** | ||
* Some javadoc. | ||
* | ||
* @author Some javadoc. | ||
* @version Some javadoc. | ||
* @param Some javadoc. | ||
* @return Some javadoc. | ||
* @throws Some javadoc. | ||
* @exception Some javadoc. | ||
* @see Some javadoc. | ||
* @since Some javadoc. | ||
* @serial Some javadoc. | ||
* @serialField | ||
* @serialData | ||
*/ | ||
public class Example1 {} | ||
|
||
class Valid1 implements Serializable {} | ||
|
||
/** | ||
* Some javadoc. | ||
* | ||
* @since Some javadoc. | ||
* @version Some javadoc. // violation | ||
* @deprecated | ||
* @see Some javadoc. // violation | ||
*/ | ||
class Invalid1 implements Serializable {} | ||
|
||
/** | ||
* Some javadoc. | ||
* | ||
* @since Some javadoc. | ||
* @version Some javadoc. // violation | ||
* @deprecated | ||
* @see Some javadoc. // violation | ||
* @author max // violation | ||
*/ | ||
enum Test1 {} | ||
// xdoc section -- end |
44 changes: 0 additions & 44 deletions
44
...mples/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/Example1.txt
This file was deleted.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
...ples/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/Example2.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,58 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="AtclauseOrder"> | ||
<property name="tagOrder" | ||
value="@author, @since, @version, @param, @return, | ||
@throws, @exception, @deprecated, | ||
@see, @serial, @serialField, @serialData"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder; | ||
|
||
import java.io.Serializable; | ||
|
||
// xdoc section -- start | ||
/** | ||
* Some javadoc. | ||
* | ||
* @author Some javadoc. | ||
* @version Some javadoc. | ||
* @param Some javadoc. | ||
* @return Some javadoc. | ||
* @throws Some javadoc. | ||
* @exception Some javadoc. | ||
* @see Some javadoc. | ||
* @since Some javadoc. // violation | ||
* @serial Some javadoc. | ||
* @serialField | ||
* @serialData | ||
*/ | ||
public class Example2 {} | ||
|
||
class Valid2 implements Serializable {} | ||
|
||
/** | ||
* Some javadoc. | ||
* | ||
* @since Some javadoc. | ||
* @version Some javadoc. | ||
* @deprecated | ||
* @see Some javadoc. | ||
*/ | ||
class Invalid2 implements Serializable {} | ||
|
||
/** | ||
* Some javadoc. | ||
* | ||
* @since Some javadoc. | ||
* @version Some javadoc. | ||
* @deprecated Some javadoc. | ||
* @see Some javadoc. | ||
* @author max // violation | ||
*/ | ||
enum Test2 {} | ||
// xdoc section -- end |
58 changes: 58 additions & 0 deletions
58
...ples/resources/com/puppycrawl/tools/checkstyle/checks/javadoc/atclauseorder/Example3.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,58 @@ | ||
/*xml | ||
<module name="Checker"> | ||
<module name="TreeWalker"> | ||
<module name="AtclauseOrder"> | ||
<property name="target" value="ENUM_DEF"/> | ||
<property name="tagOrder" | ||
value="@author, @since, @version, @param, @return, | ||
@throws, @exception, @deprecated, | ||
@see, @serial, @serialField, @serialData"/> | ||
</module> | ||
</module> | ||
</module> | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.javadoc.atclauseorder; | ||
|
||
import java.io.Serializable; | ||
|
||
// xdoc section -- start | ||
/** | ||
* Some javadoc. | ||
* | ||
* @author Some javadoc. | ||
* @version Some javadoc. | ||
* @param Some javadoc. | ||
* @return Some javadoc. | ||
* @throws Some javadoc. | ||
* @exception Some javadoc. | ||
* @see Some javadoc. | ||
* @since Some javadoc. | ||
* @serial Some javadoc. | ||
* @serialField | ||
* @serialData | ||
*/ | ||
public class Example3 {} | ||
|
||
class Valid3 implements Serializable {} | ||
|
||
/** | ||
* Some javadoc. | ||
* | ||
* @since Some javadoc. | ||
* @version Some javadoc. | ||
* @deprecated | ||
* @see Some javadoc. | ||
*/ | ||
class Invalid3 implements Serializable {} | ||
|
||
/** | ||
* Some javadoc. | ||
* | ||
* @since Some javadoc. | ||
* @version Some javadoc. | ||
* @deprecated | ||
* @see Some javadoc. | ||
* @author Some javadoc. // violation | ||
*/ | ||
enum Test3 {} | ||
// xdoc section -- end |
Oops, something went wrong.