View Javadoc
1   package com.google.checkstyle.test.chapter5naming.rule523methodnames;
2   
3   /**
4    * Test input for MethodNameCheck specifically
5    * whether the method name equals the class name.
6    *
7    * @author Travis Schneeberger
8    */
9   public class InputMethodName {
10  	void foo() {}
11  	void Foo() {} //warn
12  	void fOo() {} //warn
13  	void f0o() {}
14  	void f$o() {} //warn
15  	void f_oo() {} //warn
16  	void f() {} //warn
17  	void fO() {} //warn
18  
19  	class InnerFoo {
20  		void foo() {}
21  		void Foo() {} //warn
22  		void fOo() {} //warn
23  		void f0o() {}
24  		void f$o() {} //warn
25  		void f_oo() {} //warn
26  		void f() {} //warn
27  		void fO() {} //warn
28  	}
29  
30  	InnerFoo anon = new InnerFoo() {
31  		void foo() {}
32  		void Foo() {} //warn
33  		void fOo() {} //warn
34  		void f0o() {}
35  		void f$o() {} //warn
36  		void f_oo() {} //warn
37  		void f() {} //warn
38  		void fO() {} //warn
39  	};
40  }
41  
42  interface FooIn {
43  	void foo();
44  	void Foo(); //warn
45  	void fOo(); //warn
46  	void f0o();
47  	void f$o(); //warn
48  	void f_oo(); //warn
49  	void f(); //warn
50  	void fO(); //warn
51  }