blob: d70c8595e6075b08a47cdda51efda4dee28db5d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
package com.puppycrawl.tools.checkstyle.checks.design;
public class InputClone
{/* class body */
public InputClone() throws CloneNotSupportedException
{ //constructor body
super.equals(new String());
super.clone();
}
public Object clone() throws CloneNotSupportedException
{
return super.clone();
}
public void method() throws CloneNotSupportedException
{
super.clone();
}
{
super.clone();
}
}
class NoSuperClone
{
}
class InnerClone
{
}
class CloneWithTypeArguments<T> extends CloneWithTypeArgumentsAndNoSuper<T>
{
}
class CloneWithTypeArgumentsAndNoSuper<T>
{
}
class MyClassWithGenericSuperMethod
{
}
class AnotherClass {
}
class NativeTest {
public native Object clone();
}
|