-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #10562: Update inputs for OuterTypeFilenameCheckTest
- Loading branch information
1 parent
c350a32
commit a1338ac
Showing
14 changed files
with
89 additions
and
74 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
9 changes: 6 additions & 3 deletions
9
...om/puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilenameRecord.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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
/* | ||
OuterTypeFilename | ||
*/ | ||
|
||
//non-compiled with javac: contains different class name by demand of test | ||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; | ||
|
||
/* Config: | ||
* default | ||
*/ | ||
public record IncorrectName1(int x, int y, String str) { // violation | ||
} |
9 changes: 6 additions & 3 deletions
9
...ools/checkstyle/checks/outertypefilename/InputOuterTypeFilenameRecordMethodRecordDef.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
8 changes: 7 additions & 1 deletion
8
...-noncompilable/com/puppycrawl/tools/checkstyle/checks/outertypefilename/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 |
---|---|---|
@@ -1,3 +1,9 @@ | ||
/* | ||
OuterTypeFilename | ||
*/ | ||
|
||
@Deprecated | ||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; | ||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; // ok | ||
|
8 changes: 7 additions & 1 deletion
8
...ces/com/puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilename1.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
8 changes: 7 additions & 1 deletion
8
...pycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilename15Extensions.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
8 changes: 7 additions & 1 deletion
8
...es/com/puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilename1a.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
8 changes: 7 additions & 1 deletion
8
...ces/com/puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilename2.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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
/* | ||
OuterTypeFilename | ||
*/ | ||
|
||
// someexamples of 1.5 extensions | ||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; | ||
|
||
public class InputOuterTypeFilename2 { | ||
public class InputOuterTypeFilename2 { // ok | ||
|
||
|
||
} |
8 changes: 7 additions & 1 deletion
8
...ces/com/puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilename3.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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
/* | ||
OuterTypeFilename | ||
*/ | ||
|
||
// someexamples of 1.5 extensions | ||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; | ||
|
||
class InputOuterTypeFilename3 { | ||
class InputOuterTypeFilename3 { // ok | ||
|
||
|
||
} |
8 changes: 7 additions & 1 deletion
8
...ces/com/puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilename5.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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
/* | ||
OuterTypeFilename | ||
*/ | ||
|
||
// someexamples of 1.5 extensions | ||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; | ||
|
||
class InputOuterTypeFilename5NameMismatch { | ||
class InputOuterTypeFilename5NameMismatch { // violation | ||
|
||
|
||
} |
8 changes: 7 additions & 1 deletion
8
...ppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilenameCheckPublic.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
8 changes: 7 additions & 1 deletion
8
...ycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilenameIllegalTokens.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
8 changes: 7 additions & 1 deletion
8
.../puppycrawl/tools/checkstyle/checks/outertypefilename/InputOuterTypeFilenameNoPublic.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 |
---|---|---|
@@ -1,4 +1,10 @@ | ||
/* | ||
OuterTypeFilename | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.outertypefilename; | ||
|
||
class Foo {} | ||
class Foo {} // violation | ||
enum FooEnum {} |