1 package com.google.checkstyle.test.chapter3filestructure.rule341onetoplevel;
2
3
4 public class InputOneTopLevelClassBasic {
5
6 public InputOneTopLevelClassBasic() throws CloneNotSupportedException {
7 super.equals(new String());
8 super.clone();
9 }
10
11
12 public Object clone() throws CloneNotSupportedException {
13 return super.clone();
14 }
15
16
17 public void method() throws CloneNotSupportedException {
18 super.clone();
19 }
20
21 {
22 super.clone();
23 }
24 }
25
26
27 class NoSuperClone {
28 public Object clone() {
29 return null;
30 }
31 }
32
33
34 class InnerClone {
35 public Object clone() {
36 class Inner {
37 public Object clone() throws CloneNotSupportedException {
38 return super.clone();
39 }
40 }
41
42 return null;
43 }
44 }
45
46
47
48
49 class CloneWithTypeArguments {
50
51 }
52
53
54 class CloneWithTypeArgumentsAndNoSuper {}
55
56
57
58 class MyClassWithGenericSuperMethod {
59 void someMethod(java.util.List<? super java.util.Map> l) {
60
61 }
62
63
64
65
66
67
68
69 public static Object clone(Object o) {
70 return null;
71 }
72 }
73
74
75 class AnotherClass {
76
77
78
79
80
81
82
83
84 public <T> T clone(T t) {
85 return null;
86 }
87 }