View Javadoc
1   /*
2   ClassMemberImpliedModifier
3   violateImpliedStaticOnNestedEnum = false
4   violateImpliedStaticOnNestedInterface = false
5   violateImpliedStaticOnNestedRecord = (default)true
6   
7   
8   */
9   
10  package com.puppycrawl.tools.checkstyle.checks.modifier.classmemberimpliedmodifier;
11  
12  /**
13   * Test {@code ClassMemberImpliedModifierCheck} with all attributes set to false.
14   * <pre>
15   *  <module name="ClassMemberImpliedModifier">
16   *    <property name="violateImpliedStaticOnNestedEnum" value="false"/>
17   *    <property name="violateImpliedStaticOnNestedInterface" value="false"/>
18   *  </module>
19   * </pre>
20   */
21  public class InputClassMemberImpliedModifierOnClassNoViolations {
22  
23      public static final int fieldPublicStaticFinal = 1;
24  
25      public static int fieldPublicStatic = 1;
26  
27      public final int fieldPublicFinal = 1;
28  
29      public int fieldPublic = 1;
30  
31      public static void methodPublicStatic() {
32      }
33  
34      public static final void methodPublicStaticFinal() {
35      }
36  
37      public void methodPublic() {
38      }
39  
40      public final void methodPublicFinal() {
41      }
42  
43      private void methodPrivate() {
44      }
45  
46      static enum StaticEnum {
47          RED, GREEN, BLUE;
48  
49          static enum StaticInnerEnum {
50              RED, GREEN, BLUE;
51          }
52  
53          enum SimpleInnerEnum {
54              RED, GREEN, BLUE;
55          }
56  
57          static interface StaticInnerInterface {
58          }
59  
60          interface SimpleInnerInterface {
61          }
62      }
63  
64      enum SimpleEnum {
65          RED, GREEN, BLUE;
66  
67          static enum StaticInnerEnum {
68              RED, GREEN, BLUE;
69          }
70  
71          enum SimpleInnerEnum {
72              RED, GREEN, BLUE;
73          }
74  
75          static interface StaticInnerInterface {
76          }
77  
78          interface SimpleInnerInterface {
79          }
80      }
81  
82      static interface StaticInterface {
83      }
84  
85      interface SimpleInterface {
86      }
87  }