View Javadoc
1   /*
2   RedundantModifier
3   jdkVersion = 11
4   
5   */
6   
7   package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier;
8   
9   public interface InputRedundantModifierNestedDef {
10      public enum MyInnerEnum1 {} // violation
11      static enum MyInnerEnum2 {} // violation
12      public static enum MyInnerEnum3 {} // 2 violations
13      static public enum MyInnerEnum4 {} // 2 violations
14  
15      interface MyInnerInterface {
16          public strictfp class MyInnerClass {} // violation
17      }
18  
19      public static class testClass { // 2 violations
20      }
21  
22      public abstract static @interface testAnnotatedInterface { // 3 violations
23      }
24  }
25  
26  abstract @interface testAnnotatedInterface { // violation
27  
28      public static enum testEnum { // 2 violations
29      }
30  
31      interface testInterface {
32          public static interface nestedInterface { // 2 violations
33  
34              public static class nestedClass { // 2 violations
35              }
36  
37              public static @interface nestedAnnInterface { // 2 violations
38              }
39  
40              public static enum nestedEnum { // 2 violations
41              }
42          }
43      }
44  }