Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #3426: remove warning on PACKAGE_DEF preceded by javadoc not se…
…parated by line
- Loading branch information
Showing
8 changed files
with
149 additions
and
19 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
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
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
9 changes: 9 additions & 0 deletions
9
...awl/tools/checkstyle/checks/whitespace/InputEmptyLineSeparatorMultilineCommentHeader.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,9 @@ | ||
/*To check warning | ||
that causes by miltiline comment | ||
before package definition. | ||
*/ | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace; | ||
|
||
public class InputEmptyLineSeparatorMultilineCommentHeader | ||
{ | ||
} |
5 changes: 5 additions & 0 deletions
5
...es/com/puppycrawl/tools/checkstyle/checks/whitespace/package-info/test1/package-info.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,5 @@ | ||
/*For test allowing to place annotation before PACKAGE_DEF. Should not cause violation.*/ | ||
@Deprecated | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test1; | ||
|
||
import java.lang.System; |
4 changes: 4 additions & 0 deletions
4
...es/com/puppycrawl/tools/checkstyle/checks/whitespace/package-info/test2/package-info.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 @@ | ||
/**For test allowing to place javadoc before PACKAGE_DEF Should not cause violation.*/ | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test2; | ||
|
||
import java.lang.System; |
5 changes: 5 additions & 0 deletions
5
...es/com/puppycrawl/tools/checkstyle/checks/whitespace/package-info/test3/package-info.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,5 @@ | ||
/*For test that there's warning when block comment isn't separated from PACKAGE_DEF by line. | ||
Should cause violation after this comment*/ | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test3; | ||
|
||
import java.lang.System; |
5 changes: 5 additions & 0 deletions
5
...es/com/puppycrawl/tools/checkstyle/checks/whitespace/package-info/test4/package-info.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,5 @@ | ||
//for test that there's warning when single line comment isn't separated from PACKAGE_DEF by line | ||
//Should cause violation after this comment | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test4; | ||
|
||
import java.lang.System; |