View Javadoc
1   package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier;
2   
3   public enum InputRedundantModifierFinalInEnumMethods {
4       E1,
5       E2 {
6           @Override
7           public final void v() {
8           }
9       };
10  
11      public void v() {
12      }
13  
14      // not redundant since field can override this method if 'final' is removed
15      // and that may not be desirable
16      public final void v2() {
17      }
18  }
19  enum InputRedundantModifierFinalInEnumMethods2 {
20      E1 {
21          @Override
22          public final void v() {
23          }
24      },
25      E2 {
26          @Override
27          public void v() {
28          }
29      };
30  
31      public abstract void v();
32  }