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
163 additions
and
21 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 @@ | ||
/*violation: 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 @@ | ||
/*OK: for test allowing to place annotation before PACKAGE_DEF.*/ | ||
@Deprecated | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test1.packageinfo; | ||
|
||
import java.lang.Deprecated; |
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 @@ | ||
/**OK: for test allowing to place javadoc before PACKAGE_DEF.*/ | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test2.packageinfo; | ||
|
||
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 @@ | ||
/*violation: for test that there's warning when block comment isn't | ||
separated from PACKAGE_DEF by line.*/ | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test3.packageinfo; | ||
|
||
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 there's warning when single line comment isn't separated from PACKAGE_DEF by line | ||
//violation is expected after this line | ||
package com.puppycrawl.tools.checkstyle.checks.whitespace.test4.packageinfo; | ||
|
||
import java.lang.System; |