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#14716: Fix the violation for modifiers wrapped in cl…
…ass def
- Loading branch information
1 parent
4fe8118
commit 14e94b2
Showing
5 changed files
with
95 additions
and
0 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
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
30 changes: 30 additions & 0 deletions
30
...ls/checkstyle/checks/indentation/indentation/InputIndentationClassDeclarationWrapped.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,30 @@ | ||
package com.puppycrawl.tools.checkstyle.checks.indentation.indentation;//indent:0 exp:0 | ||
|
||
public class InputIndentationClassDeclarationWrapped {//indent:0 exp:0 | ||
|
||
public class A {};//indent:2 exp:2 | ||
|
||
public//indent:2 exp:2 | ||
class B {};//indent:6 exp:6 | ||
|
||
final//indent:2 exp:2 | ||
static class C {};//indent:6 exp:6 | ||
|
||
abstract//indent:2 exp:2 | ||
strictfp class G {};//indent:6 exp:6 | ||
|
||
public//indent:2 exp:2 | ||
class T {};//indent:6 exp:6 | ||
|
||
public//indent:2 exp:2 | ||
@X class D {};//indent:6 exp:6 | ||
|
||
abstract @Y//indent:2 exp:2 | ||
@Z strictfp class E {};//indent:6 exp:6 | ||
|
||
@X class F {};//indent:2 exp:2 | ||
|
||
@interface X{}//indent:2 exp:2 | ||
@interface Y{}//indent:2 exp:2 | ||
@interface Z{}//indent:2 exp:2 | ||
}//indent:0 exp:0 |