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#10806: RedundantModifierCheck fails on nested interf…
…ace and annotation declarations
- Loading branch information
Showing
3 changed files
with
32 additions
and
1 deletion.
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
18 changes: 18 additions & 0 deletions
18
...l/tools/checkstyle/checks/modifier/redundantmodifier/InputRedundantModifierNestedDef.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,18 @@ | ||
/* | ||
RedundantModifier | ||
*/ | ||
|
||
package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier; | ||
|
||
public interface InputRedundantModifierNestedDef { | ||
public enum MyInnerEnum1 {} // violation | ||
static enum MyInnerEnum2 {} // violation | ||
public static enum MyInnerEnum3 {} // 2 violations | ||
static public enum MyInnerEnum4 {} // 2 violations | ||
|
||
interface MyInnerInterface { | ||
public strictfp class MyInnerClass {} // violation | ||
} | ||
} |