View Javadoc
1   /*
2   AbbreviationAsWordInName
3   allowedAbbreviationLength = (default)3
4   allowedAbbreviations = (default)
5   ignoreFinal = (default)true
6   ignoreStatic = (default)true
7   ignoreStaticFinal = (default)true
8   ignoreOverriddenMethods = (default)true
9   tokens = CLASS_DEF, METHOD_DEF
10  
11  
12  */
13  
14  package com.puppycrawl.tools.checkstyle.checks.naming.abbreviationaswordinname;
15  
16  import org.junit.Before;
17  
18  abstract class InputAbbreviationAsWordInNameOverridableMethod extends Class1 {
19  	public int serialNUMBER = 6;
20  	public final int s1erialNUMBER = 6;
21  	private static int s2erialNUMBER = 6;
22  	private static final int s3erialNUMBER = 6;
23  
24  	@Override
25  	@SuppressWarnings(value = { "" })
26  	@Before
27  	protected void oveRRRRRrriddenMethod(){
28  	    int a = 0;
29  	    // blah-blah
30  	}
31  }
32  
33  class Class1 {
34      @SuppressWarnings(value = { "" })
35      protected void oveRRRRRrriddenMethod(){ // violation
36          int a = 0;
37          // blah-blah
38      }
39  
40  }
41  
42  class Class2 extends Class1 {
43  
44      @Override
45      @SuppressWarnings(value = { "" })
46      @Before
47  	protected void oveRRRRRrriddenMethod(){
48          int a = 0;
49          // blah-blah
50      }
51  
52  }