View Javadoc
1   /*
2   InterfaceMemberImpliedModifier
3   violateImpliedPublicField = (default)true
4   violateImpliedStaticField = (default)true
5   violateImpliedFinalField = (default)true
6   violateImpliedPublicMethod = (default)true
7   violateImpliedAbstractMethod = (default)true
8   violateImpliedPublicNested = (default)true
9   violateImpliedStaticNested = (default)true
10  
11  
12  */
13  
14  package com.puppycrawl.tools.checkstyle.checks.modifier.interfacememberimpliedmodifier;
15  
16  interface InputInterfaceMemberImpliedModifierPackageScopeInterface {
17  
18      public static final int fieldPublicStaticFinal = 1;
19  
20      public static int fieldPublicStatic = 1; // violation
21  
22      public final int fieldPublicFinal = 1; // violation
23  
24      public int fieldPublic = 1; // 2 violations
25  
26      static final int fieldStaticFinal = 1; // violation
27  
28      static int fieldStatic = 1; // 2 violations
29  
30      final int fieldFinal = 1; // 2 violations
31  
32      int field = 1; // 3 violations
33  
34      public static void methodPublicStatic() {
35      }
36  
37      static void methodStatic() { // violation
38      }
39  
40      public default void methodPublicDefault() {
41      }
42  
43      default void methodDefault() { // violation
44      }
45  
46      public abstract void methodPublicAbstract();
47  
48      abstract void methodAbstract(); // violation
49  
50      public void methodPublic(); // violation
51  
52      void method(); // 2 violations
53  
54      public static interface NestedInterfacePublicStatic {
55      }
56  
57      public interface NestedInterfacePublic { // violation
58      }
59  
60      static interface NestedInterfaceStatic { // violation
61      }
62  
63      interface NestedInterface { // 2 violations
64      }
65  
66  }