View Javadoc
1   /*
2   RedundantModifier
3   tokens = (default)METHOD_DEF, VARIABLE_DEF, ANNOTATION_FIELD_DEF, INTERFACE_DEF, \
4            CTOR_DEF, CLASS_DEF, ENUM_DEF, RESOURCE
5   
6   
7   */
8   
9   package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier;
10  
11  public abstract class InputRedundantModifierFinalInAbstractMethods {
12      public abstract void method(final String param); // violation
13  
14      public abstract void method2(String param);
15  
16      public abstract void method3(String param1, final String param2); // violation
17  }
18  interface IWhatever {
19      void method(final String param); // violation
20  
21      void method2(String param);
22  }
23  class CWhatever {
24      native void method(final String param); // violation
25  
26      native void method2(String param);
27  }
28  enum EWhatever {
29      TEST() {
30          public void method(String s) {};
31      };
32  
33      public abstract void method(final String s); // violation
34  }