1
2
3
4
5
6
7
8
9
10
11
12
13 package com.puppycrawl.tools.checkstyle.checks.naming.methodname;
14
15
16
17
18
19
20
21 public class InputMethodNameEqualClassName {
22
23
24 public int InputMethodNameEqualClassName() {
25 return 0;
26 }
27
28
29 private int PRIVATEInputMethodNameEqualClassName() {
30 return 0;
31 }
32
33 class Inner {
34
35 public int Inner() {
36 return 0;
37 }
38
39
40 public int InputMethodNameEqualClassName() {
41 return 0;
42 }
43 }
44
45 public void anotherMethod() {
46 new InputMethodNameEqualClassName() {
47
48
49 public int InputMethodNameEqualClassName() {
50 return 1;
51 }
52 };
53 }
54 }
55
56 interface SweetInterface {
57
58
59 int SweetInterface();
60 }
61
62 class Outer {
63
64
65 public void Outer() {
66
67 }
68 }