1   package com.puppycrawl.tools.checkstyle.checks.modifier.redundantmodifier;
2   
3   public abstract class InputRedundantModifierFinalInAbstractMethods {
4       public abstract void method(final String param); // violation
5   
6       public abstract void method2(String param);
7   
8       public abstract void method3(String param1, final String param2); // violation
9   }
10  interface IWhatever {
11      void method(final String param); // violation
12  
13      void method2(String param);
14  }
15  class CWhatever {
16      native void method(final String param); // violation
17  
18      native void method2(String param);
19  }
20  enum EWhatever {
21      TEST() {
22          public void method(String s) {};
23      };
24  
25      public abstract void method(final String s); // violation
26  }